Struct slack_morphism::prelude::blocks::SlackBlockChoiceItem [−][src]
pub struct SlackBlockChoiceItem<T> where
T: Into<SlackBlockText>, { pub text: T, pub value: String, pub url: Option<String>, }
Fields
text: T
value: String
url: Option<String>
Implementations
Trait Implementations
impl<'de, T> Deserialize<'de> for SlackBlockChoiceItem<T> where
T: Into<SlackBlockText> + Deserialize<'de>,
[src]
impl<'de, T> Deserialize<'de> for SlackBlockChoiceItem<T> where
T: Into<SlackBlockText> + Deserialize<'de>,
[src]pub fn deserialize<__D>(
__deserializer: __D
) -> Result<SlackBlockChoiceItem<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<SlackBlockChoiceItem<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl<T> From<SlackBlockChoiceItemInit<T>> for SlackBlockChoiceItem<T> where
T: Into<SlackBlockText>,
[src]
impl<T> From<SlackBlockChoiceItemInit<T>> for SlackBlockChoiceItem<T> where
T: Into<SlackBlockText>,
[src]Performs the conversion.
impl<T> PartialEq<SlackBlockChoiceItem<T>> for SlackBlockChoiceItem<T> where
T: PartialEq<T> + Into<SlackBlockText>,
[src]
impl<T> PartialEq<SlackBlockChoiceItem<T>> for SlackBlockChoiceItem<T> where
T: PartialEq<T> + Into<SlackBlockText>,
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for SlackBlockChoiceItem<T> where
T: RefUnwindSafe,
impl<T> Send for SlackBlockChoiceItem<T> where
T: Send,
impl<T> Sync for SlackBlockChoiceItem<T> where
T: Sync,
impl<T> Unpin for SlackBlockChoiceItem<T> where
T: Unpin,
impl<T> UnwindSafe for SlackBlockChoiceItem<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more