pub struct EventOptions {
pub prevent_relationship_updates: bool,
pub prevent_persist: bool,
pub from_peer: Option<bool>,
}Expand description
Options that can be attached to an event
Fields§
§prevent_relationship_updates: boolWhen true, relationship cascades are skipped for this event. Used to prevent infinite loops during cascade processing.
prevent_persist: boolWhen true, the event is not persisted to durable backend. Used for events from durable backend (to avoid re-publishing).
from_peer: Option<bool>When true, this event was replicated from a peer server. Used to prevent re-broadcasting to peers and avoid cascade loops.
Trait Implementations§
Source§impl Clone for EventOptions
impl Clone for EventOptions
Source§fn clone(&self) -> EventOptions
fn clone(&self) -> EventOptions
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 EventOptions
impl Debug for EventOptions
Source§impl Default for EventOptions
impl Default for EventOptions
Source§fn default() -> EventOptions
fn default() -> EventOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EventOptions
impl<'de> Deserialize<'de> for EventOptions
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
Source§impl PartialEq for EventOptions
impl PartialEq for EventOptions
Source§fn eq(&self, other: &EventOptions) -> bool
fn eq(&self, other: &EventOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EventOptions
impl Serialize for EventOptions
impl StructuralPartialEq for EventOptions
Auto Trait Implementations§
impl Freeze for EventOptions
impl RefUnwindSafe for EventOptions
impl Send for EventOptions
impl Sync for EventOptions
impl Unpin for EventOptions
impl UnsafeUnpin for EventOptions
impl UnwindSafe for EventOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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