pub struct DataActorConfig {
pub actor_id: Option<ActorId>,
pub log_events: bool,
pub log_commands: bool,
}Expand description
Common configuration for DataActor based components.
Fields§
§actor_id: Option<ActorId>The custom identifier for the Actor.
log_events: boolIf events should be logged.
log_commands: boolIf commands should be logged.
Trait Implementations§
Source§impl Clone for DataActorConfig
impl Clone for DataActorConfig
Source§fn clone(&self) -> DataActorConfig
fn clone(&self) -> DataActorConfig
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 DataActorConfig
impl Debug for DataActorConfig
Source§impl Default for DataActorConfig
impl Default for DataActorConfig
Source§impl<'de> Deserialize<'de> for DataActorConfigwhere
DataActorConfig: Default,
impl<'de> Deserialize<'de> for DataActorConfigwhere
DataActorConfig: Default,
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
Auto Trait Implementations§
impl Freeze for DataActorConfig
impl RefUnwindSafe for DataActorConfig
impl Send for DataActorConfig
impl Sync for DataActorConfig
impl Unpin for DataActorConfig
impl UnsafeUnpin for DataActorConfig
impl UnwindSafe for DataActorConfig
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