pub struct Unsubscribe {
pub method: UnsubscribeMethod,
pub params: UnsubscribeParams,
}Fields§
§method: UnsubscribeMethod§params: UnsubscribeParamsImplementations§
Source§impl Unsubscribe
impl Unsubscribe
pub fn builder() -> UnsubscribeBuilder
Source§impl Unsubscribe
impl Unsubscribe
pub const IDENTIFIER: &'static str = "session.unsubscribe"
pub const DOMAIN_DIRECTION: &'static str = "remote"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for Unsubscribe
impl Clone for Unsubscribe
Source§fn clone(&self) -> Unsubscribe
fn clone(&self) -> Unsubscribe
Returns a duplicate 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 CommandResult for Unsubscribe
impl CommandResult for Unsubscribe
type Result = UnsubscribeResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl Debug for Unsubscribe
impl Debug for Unsubscribe
Source§impl<'de> Deserialize<'de> for Unsubscribe
impl<'de> Deserialize<'de> for Unsubscribe
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 From<Unsubscribe> for Command
impl From<Unsubscribe> for Command
Source§fn from(v: Unsubscribe) -> Self
fn from(v: Unsubscribe) -> Self
Converts to this type from the input type.
Source§impl From<Unsubscribe> for SessionCommand
impl From<Unsubscribe> for SessionCommand
Source§fn from(v: Unsubscribe) -> Self
fn from(v: Unsubscribe) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Unsubscribe
impl PartialEq for Unsubscribe
Source§impl Serialize for Unsubscribe
impl Serialize for Unsubscribe
Source§impl TryFrom<Command> for Unsubscribe
impl TryFrom<Command> for Unsubscribe
Source§impl TryFrom<SessionCommand> for Unsubscribe
impl TryFrom<SessionCommand> for Unsubscribe
Source§type Error = SessionCommand
type Error = SessionCommand
The type returned in the event of a conversion error.
Source§fn try_from(
e: SessionCommand,
) -> Result<Self, <Unsubscribe as TryFrom<SessionCommand>>::Error>
fn try_from( e: SessionCommand, ) -> Result<Self, <Unsubscribe as TryFrom<SessionCommand>>::Error>
Performs the conversion.
impl StructuralPartialEq for Unsubscribe
Auto Trait Implementations§
impl Freeze for Unsubscribe
impl RefUnwindSafe for Unsubscribe
impl Send for Unsubscribe
impl Sync for Unsubscribe
impl Unpin for Unsubscribe
impl UnsafeUnpin for Unsubscribe
impl UnwindSafe for Unsubscribe
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more