pub struct CommandSpec {
pub id: String,
pub name: String,
pub doc: String,
pub kind: OperationKind,
pub scope: Scope,
pub params: Vec<ParamSpec>,
pub result: Type,
pub errors: Vec<String>,
pub policy: CommandPolicy,
pub external: ExternalNames,
pub reads: Vec<String>,
pub on: Option<String>,
}Fields§
§id: StringStable identifier, namespace.name.
name: String§doc: String§kind: OperationKind§scope: Scope§params: Vec<ParamSpec>§result: Type§errors: Vec<String>Error codes the handler may return besides the generic ones.
policy: CommandPolicy§external: ExternalNames§reads: Vec<String>State fields a query reads. A query’s answer is stale once one of them changes, so live subscriptions request it again.
on: Option<String>For a command answering another module’s event: the event, as
module.event. It runs after each command emitting that event.
Implementations§
Trait Implementations§
Source§impl Clone for CommandSpec
impl Clone for CommandSpec
Source§impl Debug for CommandSpec
impl Debug for CommandSpec
Source§impl<'de> Deserialize<'de> for CommandSpec
impl<'de> Deserialize<'de> for CommandSpec
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
impl Eq for CommandSpec
Source§impl PartialEq for CommandSpec
impl PartialEq for CommandSpec
Source§impl Serialize for CommandSpec
impl Serialize for CommandSpec
impl StructuralPartialEq for CommandSpec
Auto Trait Implementations§
impl Freeze for CommandSpec
impl RefUnwindSafe for CommandSpec
impl Send for CommandSpec
impl Sync for CommandSpec
impl Unpin for CommandSpec
impl UnsafeUnpin for CommandSpec
impl UnwindSafe for CommandSpec
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