pub struct BoundedContextSpec {
pub bounded_context: String,
pub event_types: Vec<EventTypeSpec>,
pub command_types: Vec<CommandTypeSpec>,
}Fields§
§bounded_context: String§event_types: Vec<EventTypeSpec>Vec field name stays plural (idiomatic Rust); the TOML key is
singular ([[event_type]]) since each array-of-tables block
declares exactly one event type - the same convention Cargo.toml
itself uses ([[bin]]/[[test]], not [[bins]]/[[tests]]).
command_types: Vec<CommandTypeSpec>Trait Implementations§
Source§impl Debug for BoundedContextSpec
impl Debug for BoundedContextSpec
Source§impl<'de> Deserialize<'de> for BoundedContextSpec
impl<'de> Deserialize<'de> for BoundedContextSpec
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 BoundedContextSpec
impl RefUnwindSafe for BoundedContextSpec
impl Send for BoundedContextSpec
impl Sync for BoundedContextSpec
impl Unpin for BoundedContextSpec
impl UnsafeUnpin for BoundedContextSpec
impl UnwindSafe for BoundedContextSpec
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