pub struct BodyPacket {
pub status: BodyPacketStatus,
pub channel: String,
pub kind: Option<ChannelKind>,
pub value: Option<Value>,
pub updated_at_ms: Option<u64>,
pub write_authorized: bool,
pub applied: bool,
pub error: Option<String>,
pub proposal: Option<BodyCommandProposal>,
}Expand description
Packet returned by every BodyBus operation.
Fields§
§status: BodyPacketStatus§channel: String§kind: Option<ChannelKind>§value: Option<Value>§updated_at_ms: Option<u64>§applied: bool§error: Option<String>§proposal: Option<BodyCommandProposal>Trait Implementations§
Source§impl Clone for BodyPacket
impl Clone for BodyPacket
Source§impl Debug for BodyPacket
impl Debug for BodyPacket
Source§impl<'de> Deserialize<'de> for BodyPacket
impl<'de> Deserialize<'de> for BodyPacket
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 BodyPacket
impl PartialEq for BodyPacket
Source§impl Serialize for BodyPacket
impl Serialize for BodyPacket
impl StructuralPartialEq for BodyPacket
Auto Trait Implementations§
impl Forget for BodyPacket
impl Freeze for BodyPacketwhere
*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 BodyPacket
impl RefUnwindSafe for BodyPacket
impl Send for BodyPacket
impl Sync for BodyPacket
impl Unpin for BodyPacket
impl UnsafeUnpin for BodyPacketwhere
*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 BodyPacket
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