pub enum Audience {
Everyone,
People,
Agents,
}Expand description
Who an action is listed for. The app declares it. Most actions are for
Everyone, which is the default. An action outside a
listing’s audience stays published, resolvable and invocable by address,
under the same permission, confirmation and history rules as any other.
It just isn’t offered there.
Variants§
Everyone
People
Listed for people only: an action whose point is what a person sees or does next, such as copying a link to the clipboard. Agent listings leave it out.
Agents
Listed for agents, scripts and the controls that submit it, never for a person to pick (the palette, menus). Examples: reading a message’s content, revealing a text range by offsets, an edit addressed by an internal part number.
Implementations§
Source§impl Audience
impl Audience
Sourcepub const fn reaches_people(self) -> bool
pub const fn reaches_people(self) -> bool
Whether people’s listings (the palette, menus) offer it.
Sourcepub const fn reaches_agents(self) -> bool
pub const fn reaches_agents(self) -> bool
Whether agents’ listings offer it.
Trait Implementations§
impl Copy for Audience
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>,
impl Eq for Audience
impl StructuralPartialEq for Audience
Auto Trait Implementations§
impl Forget for Audience
impl Freeze for Audience
impl Move 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more