pub struct CommandSchema { /* private fields */ }Expand description
How a command’s payload is kept: which fields go to the vault. Made with
Domain::command; its methods return it, so they chain:
shop_domain.command("Register").personal(&["email"], |_, id| id.to_owned()).secret(&["password"]);.
Clients that submit these commands need the domain: kernable.with_domain(&shop_domain).
Implementations§
Auto Trait Implementations§
impl Forget for CommandSchema
impl Freeze for CommandSchemawhere
*const ArcInner<DomainInner> is !null: Freeze,
PhantomData<ArcInner<DomainInner>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
impl Move for CommandSchema
impl RefUnwindSafe for CommandSchemawhere
Atomic<usize>: RefUnwindSafe,
RwLock<HashMap<String, EventDef>>: RefUnwindSafe,
RwLock<HashMap<String, VaultFields>>: RefUnwindSafe,
RwLock<HashMap<String, Option<QueryTarget>>>: RefUnwindSafe,
RwLock<Vec<Arc<dyn Runnable>>>: RefUnwindSafe,
RwLock<Vec<Listener>>: RefUnwindSafe,
RwLock<Vec<Process>>: RefUnwindSafe,
RwLock<HashSet<String>>: RefUnwindSafe,
impl Send for CommandSchema
impl Sync for CommandSchema
impl Unpin for CommandSchema
impl UnsafeUnpin for CommandSchemawhere
*const ArcInner<DomainInner> is !null: UnsafeUnpin,
PhantomData<ArcInner<DomainInner>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for CommandSchema
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request