Struct bonsaidb_core::networking::Payload
source · pub struct Payload {
pub session_id: Option<SessionId>,
pub id: Option<u32>,
pub name: ApiName,
pub value: Result<Bytes, Error>,
}
Expand description
A payload with an associated id.
Fields§
§session_id: Option<SessionId>
The authentication session id for this payload.
id: Option<u32>
The unique id for this payload.
name: ApiName
The unique name of the api
value: Result<Bytes, Error>
The payload
Trait Implementations§
source§impl<'de> Deserialize<'de> for Payload
impl<'de> Deserialize<'de> for Payload
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 RefUnwindSafe for Payload
impl Send for Payload
impl Sync for Payload
impl Unpin for Payload
impl UnwindSafe for Payload
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