pub struct BusinessCommand { /* private fields */ }Expand description
Typed command dispatched by a page or dynamic component to mutate host-owned authoritative state.
Implementations§
Source§impl BusinessCommand
Builder and accessor methods for BusinessCommand.
impl BusinessCommand
Builder and accessor methods for BusinessCommand.
Sourcepub fn expected_revision_value(&self) -> Option<u64>
pub fn expected_revision_value(&self) -> Option<u64>
Returns the optional expected optimistic concurrency revision.
§Returns
Option<u64>- Expected entity revision if set.
Sourcepub fn with_expected_revision(self, revision: u64) -> Self
pub fn with_expected_revision(self, revision: u64) -> Self
Sourcepub fn with_idempotency_key(self, key: String) -> Self
pub fn with_idempotency_key(self, key: String) -> Self
Sourcepub fn with_origin_generation(self, generation: u64) -> Self
pub fn with_origin_generation(self, generation: u64) -> Self
Source§impl BusinessCommand
impl BusinessCommand
pub fn get_entity_id(&self) -> &String
pub fn get_mut_entity_id(&mut self) -> &mut String
pub fn set_entity_id(&mut self, val: String) -> &mut Self
pub fn get_command_name(&self) -> &String
pub fn get_mut_command_name(&mut self) -> &mut String
pub fn set_command_name(&mut self, val: String) -> &mut Self
pub fn get_mut_expected_revision(&mut self) -> &mut Option<u64>
pub fn set_expected_revision(&mut self, val: Option<u64>) -> &mut Self
pub fn get_idempotency_key(&self) -> &String
pub fn get_mut_idempotency_key(&mut self) -> &mut String
pub fn set_idempotency_key(&mut self, val: String) -> &mut Self
pub fn get_origin_generation(&self) -> u64
pub fn get_mut_origin_generation(&mut self) -> &mut u64
pub fn set_origin_generation(&mut self, val: u64) -> &mut Self
pub fn get_payload(&self) -> &Value
pub fn get_mut_payload(&mut self) -> &mut Value
pub fn set_payload(&mut self, val: Value) -> &mut Self
Trait Implementations§
Source§impl Clone for BusinessCommand
impl Clone for BusinessCommand
Source§impl Debug for BusinessCommand
impl Debug for BusinessCommand
Source§impl<'de> Deserialize<'de> for BusinessCommand
impl<'de> Deserialize<'de> for BusinessCommand
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 PartialEq for BusinessCommand
impl PartialEq for BusinessCommand
Source§impl Serialize for BusinessCommand
impl Serialize for BusinessCommand
impl StructuralPartialEq for BusinessCommand
Auto Trait Implementations§
impl Forget for BusinessCommand
impl Freeze for BusinessCommandwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for BusinessCommand
impl RefUnwindSafe for BusinessCommand
impl Send for BusinessCommand
impl Sync for BusinessCommand
impl Unpin for BusinessCommand
impl UnsafeUnpin for BusinessCommandwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for BusinessCommand
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