pub struct AbsSession {
pub policy: SignPolicy,
pub signers: Vec<AttributeSigner>,
pub authorized: Vec<String>,
}Expand description
A signing session with attribute-based access control.
Fields§
§policy: SignPolicy§signers: Vec<AttributeSigner>Implementations§
Source§impl AbsSession
impl AbsSession
pub fn new(policy: SignPolicy) -> Self
Sourcepub fn add_signer(&mut self, signer: AttributeSigner) -> bool
pub fn add_signer(&mut self, signer: AttributeSigner) -> bool
Add a signer. Returns true if they satisfy the policy.
Number of authorized signers.
List authorized signer IDs.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AbsSession
impl RefUnwindSafe for AbsSession
impl Send for AbsSession
impl Sync for AbsSession
impl Unpin for AbsSession
impl UnsafeUnpin for AbsSession
impl UnwindSafe for AbsSession
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more