pub enum Audience {
Owner,
Invited(BTreeSet<Invitee>),
Spool,
}Variants§
Owner
Invited(BTreeSet<Invitee>)
Spool
Uses the Spool’s current audience, never a cached membership snapshot.
Implementations§
Source§impl Audience
impl Audience
pub fn validate(&self) -> Result<()>
Sourcepub fn includes(
&self,
owner: Uuid,
principal: Uuid,
agent_id: Option<&str>,
in_spool_audience: bool,
) -> bool
pub fn includes( &self, owner: Uuid, principal: Uuid, agent_id: Option<&str>, in_spool_audience: bool, ) -> bool
The owner account comes from verified original genesis admission, not the uploading principal, Spool owner, or current owner-key selector.
pub fn includes_non_owner( &self, principal: Uuid, agent_id: Option<&str>, in_spool_audience: bool, ) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Audience
impl<'de> Deserialize<'de> for Audience
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Audience
impl StructuralPartialEq for Audience
Auto Trait Implementations§
impl Freeze for Audience
impl RefUnwindSafe for Audience
impl Send for Audience
impl Sync for Audience
impl Unpin for Audience
impl UnsafeUnpin for Audience
impl UnwindSafe for Audience
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