pub struct InitPayload {
pub versions: Vec<String>,
pub schema: String,
pub verbose: Option<bool>,
pub service_id: String,
}Expand description
JSON body of a client INIT frame.
versions must be non-empty after parse. service_id must be an
identifier. schema is the protocol version string the server may
require to match; it is not a UCI XSD path.
Fields§
§versions: Vec<String>§schema: String§verbose: Option<bool>§service_id: StringTrait Implementations§
Source§impl Clone for InitPayload
impl Clone for InitPayload
Source§fn clone(&self) -> InitPayload
fn clone(&self) -> InitPayload
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InitPayload
impl Debug for InitPayload
Source§impl<'de> Deserialize<'de> for InitPayload
impl<'de> Deserialize<'de> for InitPayload
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 Freeze for InitPayload
impl RefUnwindSafe for InitPayload
impl Send for InitPayload
impl Sync for InitPayload
impl Unpin for InitPayload
impl UnwindSafe for InitPayload
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