pub struct AckPayload {
pub id: String,
pub ok: bool,
pub error: Option<String>,
pub response: Option<Value>,
pub duplicate: Option<bool>,
}Fields§
§id: StringCorrelation ID matching the originating CmdPayload::id.
ok: booltrue if the command succeeded.
error: Option<String>Error description when ok == false.
response: Option<Value>Response data when ok == true.
duplicate: Option<bool>Set to true if this is a duplicate ack (idempotency hit).
Implementations§
Trait Implementations§
Source§impl Clone for AckPayload
impl Clone for AckPayload
Source§fn clone(&self) -> AckPayload
fn clone(&self) -> AckPayload
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AckPayload
impl Debug for AckPayload
Source§impl<'de> Deserialize<'de> for AckPayload
impl<'de> Deserialize<'de> for AckPayload
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 AckPayload
impl RefUnwindSafe for AckPayload
impl Send for AckPayload
impl Sync for AckPayload
impl Unpin for AckPayload
impl UnsafeUnpin for AckPayload
impl UnwindSafe for AckPayload
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