Struct gift_shop::commands::OpenAccount
source · pub struct OpenAccount {
pub account_id: Uuid,
pub name: String,
}
Fields§
§account_id: Uuid
§name: String
Trait Implementations§
source§impl Command for OpenAccount
impl Command for OpenAccount
§type Event = AccountOpened
type Event = AccountOpened
The Event that can be generated for this command
§type ExecutorRegistry = AggregateInstanceRegistry<Account>
type ExecutorRegistry = AggregateInstanceRegistry<Account>
The registry where the command will be dispatched
type CommandHandler = NoHandler
source§fn identifier(&self) -> String
fn identifier(&self) -> String
Returns the identifier for this command. Read more
source§impl CommandExecutor<OpenAccount> for Account
impl CommandExecutor<OpenAccount> for Account
fn execute( cmd: OpenAccount, state: &Self ) -> Result<Vec<AccountOpened>, CommandExecutorError>
source§impl<'de> Deserialize<'de> for OpenAccount
impl<'de> Deserialize<'de> for OpenAccount
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 From<OpenAccountPayload> for OpenAccount
impl From<OpenAccountPayload> for OpenAccount
source§fn from(payload: OpenAccountPayload) -> Self
fn from(payload: OpenAccountPayload) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for OpenAccount
impl Send for OpenAccount
impl Sync for OpenAccount
impl Unpin for OpenAccount
impl UnwindSafe for OpenAccount
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