Struct distant_core::data::Response [−][src]
pub struct Response {
pub tenant: String,
pub id: usize,
pub origin_id: usize,
pub payload: Vec<ResponseData>,
}
Expand description
Represents an response to a request performed on the remote machine
Fields
tenant: String
A name tied to the requester (tenant)
id: usize
A unique id associated with the response
origin_id: usize
The id of the originating request that yielded this response (more than one response may have same origin)
payload: Vec<ResponseData>
The main payload containing a collection of data comprising one or more results
Implementations
Creates a new response, 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 Response
impl UnwindSafe for Response
Blanket Implementations
Mutably borrows from an owned value. Read more