pub struct UnsubscribeRequest {
pub command: String,
}Expand description
Unsubscribe from stream of data
§Note
This struct does not carry any arguments itself. The arguments are merged into serialized object before the send operation is done.
Fields§
§command: StringCommand to be unsubscribed from
Implementations§
Source§impl UnsubscribeRequest
impl UnsubscribeRequest
Sourcepub fn with_command(self, value: impl Into<String>) -> Self
pub fn with_command(self, value: impl Into<String>) -> Self
Sets the command field of this struct.
Trait Implementations§
Source§impl Clone for UnsubscribeRequest
impl Clone for UnsubscribeRequest
Source§fn clone(&self) -> UnsubscribeRequest
fn clone(&self) -> UnsubscribeRequest
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 UnsubscribeRequest
impl Debug for UnsubscribeRequest
Source§impl Default for UnsubscribeRequest
impl Default for UnsubscribeRequest
Source§fn default() -> UnsubscribeRequest
fn default() -> UnsubscribeRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UnsubscribeRequest
impl RefUnwindSafe for UnsubscribeRequest
impl Send for UnsubscribeRequest
impl Sync for UnsubscribeRequest
impl Unpin for UnsubscribeRequest
impl UnwindSafe for UnsubscribeRequest
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)