Struct distant_core::data::Response [−][src]
pub struct Response {
pub tenant: String,
pub id: usize,
pub origin_id: Option<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: Option<usize>
The id of the originating request, if there was one (some responses are sent unprompted)
payload: Vec<ResponseData>
The main payload containing a collection of data comprising one or more results
Implementations
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