Struct slack_morphism::prelude::SlackBlockOptionGroup
source · pub struct SlackBlockOptionGroup<T: Into<SlackBlockText>> {
pub label: SlackBlockPlainTextOnly,
pub options: Vec<SlackBlockChoiceItem<T>>,
}
Fields§
§label: SlackBlockPlainTextOnly
§options: Vec<SlackBlockChoiceItem<T>>
Implementations§
source§impl<T: Into<SlackBlockText>> SlackBlockOptionGroup<T>
impl<T: Into<SlackBlockText>> SlackBlockOptionGroup<T>
pub fn new( label: SlackBlockPlainTextOnly, options: Vec<SlackBlockChoiceItem<T>> ) -> Self
pub fn label(&mut self, value: SlackBlockPlainTextOnly) -> &mut Self
pub fn with_label(self, value: SlackBlockPlainTextOnly) -> Self
pub fn options(&mut self, value: Vec<SlackBlockChoiceItem<T>>) -> &mut Self
pub fn with_options(self, value: Vec<SlackBlockChoiceItem<T>>) -> Self
Trait Implementations§
source§impl<T: Clone + Into<SlackBlockText>> Clone for SlackBlockOptionGroup<T>
impl<T: Clone + Into<SlackBlockText>> Clone for SlackBlockOptionGroup<T>
source§fn clone(&self) -> SlackBlockOptionGroup<T>
fn clone(&self) -> SlackBlockOptionGroup<T>
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<T: Debug + Into<SlackBlockText>> Debug for SlackBlockOptionGroup<T>
impl<T: Debug + Into<SlackBlockText>> Debug for SlackBlockOptionGroup<T>
source§impl<'de, T> Deserialize<'de> for SlackBlockOptionGroup<T>
impl<'de, T> Deserialize<'de> for SlackBlockOptionGroup<T>
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<T: Into<SlackBlockText>> From<SlackBlockOptionGroupInit<T>> for SlackBlockOptionGroup<T>
impl<T: Into<SlackBlockText>> From<SlackBlockOptionGroupInit<T>> for SlackBlockOptionGroup<T>
source§fn from(value: SlackBlockOptionGroupInit<T>) -> Self
fn from(value: SlackBlockOptionGroupInit<T>) -> Self
Converts to this type from the input type.
source§impl<T: PartialEq + Into<SlackBlockText>> PartialEq for SlackBlockOptionGroup<T>
impl<T: PartialEq + Into<SlackBlockText>> PartialEq for SlackBlockOptionGroup<T>
source§fn eq(&self, other: &SlackBlockOptionGroup<T>) -> bool
fn eq(&self, other: &SlackBlockOptionGroup<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T> Serialize for SlackBlockOptionGroup<T>
impl<T> Serialize for SlackBlockOptionGroup<T>
impl<T: Into<SlackBlockText>> StructuralPartialEq for SlackBlockOptionGroup<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for SlackBlockOptionGroup<T>where
T: RefUnwindSafe,
impl<T> Send for SlackBlockOptionGroup<T>where
T: Send,
impl<T> Sync for SlackBlockOptionGroup<T>where
T: Sync,
impl<T> Unpin for SlackBlockOptionGroup<T>where
T: Unpin,
impl<T> UnwindSafe for SlackBlockOptionGroup<T>where
T: UnwindSafe,
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