pub enum ClientNotification {
CancelledNotification(CancelledNotification),
InitializedNotification(InitializedNotification),
ProgressNotification(ProgressNotification),
RootsListChangedNotification(RootsListChangedNotification),
}
Expand description
ClientNotification
JSON schema
{
"anyOf": [
{
"$ref": "#/definitions/CancelledNotification"
},
{
"$ref": "#/definitions/InitializedNotification"
},
{
"$ref": "#/definitions/ProgressNotification"
},
{
"$ref": "#/definitions/RootsListChangedNotification"
}
]
}
Variants§
CancelledNotification(CancelledNotification)
InitializedNotification(InitializedNotification)
ProgressNotification(ProgressNotification)
RootsListChangedNotification(RootsListChangedNotification)
Implementations§
Trait Implementations§
Source§impl Clone for ClientNotification
impl Clone for ClientNotification
Source§fn clone(&self) -> ClientNotification
fn clone(&self) -> ClientNotification
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 ClientNotification
impl Debug for ClientNotification
Source§impl<'de> Deserialize<'de> for ClientNotification
Implementing the Deserialize trait
This allows enum to be deserialized into correct type based on the value of the “method”
impl<'de> Deserialize<'de> for ClientNotification
Implementing the Deserialize trait This allows enum to be deserialized into correct type based on the value of the “method”
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<CancelledNotification> for ClientNotification
impl From<CancelledNotification> for ClientNotification
Source§fn from(value: CancelledNotification) -> Self
fn from(value: CancelledNotification) -> Self
Converts to this type from the input type.
Source§impl From<InitializedNotification> for ClientNotification
impl From<InitializedNotification> for ClientNotification
Source§fn from(value: InitializedNotification) -> Self
fn from(value: InitializedNotification) -> Self
Converts to this type from the input type.
Source§impl From<ProgressNotification> for ClientNotification
impl From<ProgressNotification> for ClientNotification
Source§fn from(value: ProgressNotification) -> Self
fn from(value: ProgressNotification) -> Self
Converts to this type from the input type.
Source§impl From<RootsListChangedNotification> for ClientNotification
impl From<RootsListChangedNotification> for ClientNotification
Source§fn from(value: RootsListChangedNotification) -> Self
fn from(value: RootsListChangedNotification) -> Self
Converts to this type from the input type.
Source§impl Serialize for ClientNotification
impl Serialize for ClientNotification
Auto Trait Implementations§
impl Freeze for ClientNotification
impl RefUnwindSafe for ClientNotification
impl Send for ClientNotification
impl Sync for ClientNotification
impl Unpin for ClientNotification
impl UnwindSafe for ClientNotification
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