pub struct CallState {
pub method: VariantName,
pub owned: Option<VariantName>,
}
Expand description
Combination of a method name and an optional state name used in API requests.
Fields§
§method: VariantName
§owned: Option<VariantName>
Implementations§
Source§impl CallState
impl CallState
pub fn new(method: impl Into<VariantName>) -> CallState
pub fn with( method: impl Into<VariantName>, owned: impl Into<VariantName>, ) -> CallState
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CallState
impl<'de> Deserialize<'de> for CallState
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CallState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CallState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for CallState
impl Ord for CallState
Source§impl PartialOrd for CallState
impl PartialOrd for CallState
Source§impl Serialize for CallState
impl Serialize for CallState
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl StrictDecode for CallState
impl StrictDecode for CallState
fn strict_decode(reader: &mut impl TypedRead) -> Result<CallState, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl StrictDumb for CallState
impl StrictDumb for CallState
fn strict_dumb() -> CallState
Source§impl StrictEncode for CallState
impl StrictEncode for CallState
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where
W: TypedWrite,
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
Source§impl StrictStruct for CallState
impl StrictStruct for CallState
const ALL_FIELDS: &'static [&'static str]
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictType for CallState
impl StrictType for CallState
const STRICT_LIB_NAME: &'static str = LIB_NAME_SONIC
fn strict_name() -> Option<TypeName>
impl Eq for CallState
impl StrictProduct for CallState
impl StructuralPartialEq for CallState
Auto Trait Implementations§
impl Freeze for CallState
impl RefUnwindSafe for CallState
impl Send for CallState
impl Sync for CallState
impl Unpin for CallState
impl UnwindSafe for CallState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.