pub enum EventAudience {
Public,
Actor(PersonId),
Actors(Vec<PersonId>),
AffectedActors,
Private,
}Expand description
Declarative audience for a persisted event projection.
This is intentionally separate from plugin-to-plugin dispatch permissions:
it controls only whether a trusted viewer may receive the event through a
player-facing observation projection. Private is the safe default for
plugin events that do not declare an audience.
Variants§
Public
Actor(PersonId)
Actors(Vec<PersonId>)
AffectedActors
The event is visible to actors represented by EntityRef::Person in
the event’s affected-entity list.
Private
Trait Implementations§
Source§impl Clone for EventAudience
impl Clone for EventAudience
Source§fn clone(&self) -> EventAudience
fn clone(&self) -> EventAudience
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 EventAudience
impl Debug for EventAudience
Source§impl Default for EventAudience
impl Default for EventAudience
Source§fn default() -> EventAudience
fn default() -> EventAudience
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EventAudience
impl<'de> Deserialize<'de> for EventAudience
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EventAudience, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EventAudience, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EventAudience
Source§impl Ord for EventAudience
impl Ord for EventAudience
Source§fn cmp(&self, other: &EventAudience) -> Ordering
fn cmp(&self, other: &EventAudience) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for EventAudience
impl PartialEq for EventAudience
Source§impl PartialOrd for EventAudience
impl PartialOrd for EventAudience
Source§impl Serialize for EventAudience
impl Serialize for EventAudience
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for EventAudience
Auto Trait Implementations§
impl Freeze for EventAudience
impl RefUnwindSafe for EventAudience
impl Send for EventAudience
impl Sync for EventAudience
impl Unpin for EventAudience
impl UnsafeUnpin for EventAudience
impl UnwindSafe for EventAudience
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