Struct ns_protocol::state::ServiceState
source · pub struct ServiceState {
pub name: String,
pub code: u64,
pub sequence: u64,
pub data: Vec<(u16, Value)>,
}
Fields§
§name: String
§code: u64
§sequence: u64
§data: Vec<(u16, Value)>
Implementations§
source§impl ServiceState
impl ServiceState
Trait Implementations§
source§impl Clone for ServiceState
impl Clone for ServiceState
source§fn clone(&self) -> ServiceState
fn clone(&self) -> ServiceState
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 ServiceState
impl Debug for ServiceState
source§impl Default for ServiceState
impl Default for ServiceState
source§fn default() -> ServiceState
fn default() -> ServiceState
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ServiceState
impl<'de> Deserialize<'de> for ServiceState
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
source§impl PartialEq for ServiceState
impl PartialEq for ServiceState
source§fn eq(&self, other: &ServiceState) -> bool
fn eq(&self, other: &ServiceState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ServiceState
impl Serialize for ServiceState
impl StructuralPartialEq for ServiceState
Auto Trait Implementations§
impl RefUnwindSafe for ServiceState
impl Send for ServiceState
impl Sync for ServiceState
impl Unpin for ServiceState
impl UnwindSafe for ServiceState
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