Struct Subscriptions
pub struct Subscriptions(pub Vec<String>);
Expand description
Topics to subscribe to. This should be the first message sent to the server.
Tuple Fields§
§0: Vec<String>
Trait Implementations§
§impl Clone for Subscriptions
impl Clone for Subscriptions
§fn clone(&self) -> Subscriptions
fn clone(&self) -> Subscriptions
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 more§impl Debug for Subscriptions
impl Debug for Subscriptions
§impl Default for Subscriptions
impl Default for Subscriptions
§fn default() -> Subscriptions
fn default() -> Subscriptions
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for Subscriptions
impl<'de> Deserialize<'de> for Subscriptions
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Subscriptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Subscriptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Display for Subscriptions
impl Display for Subscriptions
§impl<T> From<&[T]> for Subscriptionswhere
T: ToString,
impl<T> From<&[T]> for Subscriptionswhere
T: ToString,
§fn from(value: &[T]) -> Subscriptions
fn from(value: &[T]) -> Subscriptions
Converts to this type from the input type.
§impl<T, const N: usize> From<&[T; N]> for Subscriptionswhere
T: ToString,
impl<T, const N: usize> From<&[T; N]> for Subscriptionswhere
T: ToString,
§fn from(value: &[T; N]) -> Subscriptions
fn from(value: &[T; N]) -> Subscriptions
Converts to this type from the input type.
§impl<T> From<Vec<T>> for Subscriptionswhere
T: ToString,
impl<T> From<Vec<T>> for Subscriptionswhere
T: ToString,
§fn from(value: Vec<T>) -> Subscriptions
fn from(value: Vec<T>) -> Subscriptions
Converts to this type from the input type.
§impl PartialEq for Subscriptions
impl PartialEq for Subscriptions
§impl Serialize for Subscriptions
impl Serialize for Subscriptions
§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
§impl TryFrom<Message> for Subscriptions
impl TryFrom<Message> for Subscriptions
§type Error = DeserializationError
type Error = DeserializationError
The type returned in the event of a conversion error.
§fn try_from(
value: Message,
) -> Result<Subscriptions, <Subscriptions as TryFrom<Message>>::Error>
fn try_from( value: Message, ) -> Result<Subscriptions, <Subscriptions as TryFrom<Message>>::Error>
Performs the conversion.
impl StructuralPartialEq for Subscriptions
Auto Trait Implementations§
impl Freeze for Subscriptions
impl RefUnwindSafe for Subscriptions
impl Send for Subscriptions
impl Sync for Subscriptions
impl Unpin for Subscriptions
impl UnwindSafe for Subscriptions
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