pub struct AccessPolicy { /* private fields */ }Expand description
Who reads freely, and whether agents must chain to an accountable identity.
Implementations§
Source§impl AccessPolicy
impl AccessPolicy
pub fn new() -> Self
Sourcepub fn with_roster_member(self, did: impl Into<Did>) -> Self
pub fn with_roster_member(self, did: impl Into<Did>) -> Self
Add an accountable human/org to the roster (builder style).
Sourcepub fn requiring_accountable_agents(self) -> Self
pub fn requiring_accountable_agents(self) -> Self
Require that an agent’s grant chain root at a roster member.
Trait Implementations§
Source§impl Clone for AccessPolicy
impl Clone for AccessPolicy
Source§fn clone(&self) -> AccessPolicy
fn clone(&self) -> AccessPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AccessPolicy
impl Debug for AccessPolicy
Source§impl Default for AccessPolicy
impl Default for AccessPolicy
Source§fn default() -> AccessPolicy
fn default() -> AccessPolicy
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AccessPolicy
impl RefUnwindSafe for AccessPolicy
impl Send for AccessPolicy
impl Sync for AccessPolicy
impl Unpin for AccessPolicy
impl UnsafeUnpin for AccessPolicy
impl UnwindSafe for AccessPolicy
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