pub struct Request<'a> {
pub more: Option<bool>,
pub oneway: Option<bool>,
pub upgrade: Option<bool>,
pub method: Cow<'a, str>,
pub parameters: Option<Value>,
}
Expand description
The structure of a varlink request. Used to serialize json into it.
There should be no need to use this directly.
Fields§
§more: Option<bool>
§oneway: Option<bool>
§upgrade: Option<bool>
§method: Cow<'a, str>
§parameters: Option<Value>
Implementations§
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for Request<'a>
impl<'de, 'a> Deserialize<'de> for Request<'a>
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
impl<'a> StructuralPartialEq for Request<'a>
Auto Trait Implementations§
impl<'a> Freeze for Request<'a>
impl<'a> RefUnwindSafe for Request<'a>
impl<'a> Send for Request<'a>
impl<'a> Sync for Request<'a>
impl<'a> Unpin for Request<'a>
impl<'a> UnwindSafe for Request<'a>
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