Struct distant_core::data::Request [−][src]
pub struct Request {
pub tenant: String,
pub id: usize,
pub payload: Vec<RequestData>,
}
Expand description
Represents the request to be performed on the remote machine
Fields
tenant: String
A name tied to the requester (tenant)
id: usize
A unique id associated with the request
payload: Vec<RequestData>
The main payload containing a collection of data comprising one or more actions
Implementations
Creates a new request, generating a unique id for it
Converts to a string representing the type (or types) contained in the payload
Trait Implementations
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 Request
impl UnwindSafe for Request
Blanket Implementations
Mutably borrows from an owned value. Read more