pub struct SlackBlockSuggestionOptions {
pub options: Vec<SlackBlockChoiceItem<SlackBlockPlainTextOnly>>,
}Fields§
§options: Vec<SlackBlockChoiceItem<SlackBlockPlainTextOnly>>Implementations§
Source§impl SlackBlockSuggestionOptions
impl SlackBlockSuggestionOptions
Sourcepub fn new(options: Vec<SlackBlockChoiceItem<SlackBlockPlainTextOnly>>) -> Self
pub fn new(options: Vec<SlackBlockChoiceItem<SlackBlockPlainTextOnly>>) -> Self
Creates a new SlackBlockSuggestionOptions from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn options(
&mut self,
value: Vec<SlackBlockChoiceItem<SlackBlockPlainTextOnly>>,
) -> &mut Self
pub fn options( &mut self, value: Vec<SlackBlockChoiceItem<SlackBlockPlainTextOnly>>, ) -> &mut Self
Sets options to value.
Sourcepub fn with_options(
self,
value: Vec<SlackBlockChoiceItem<SlackBlockPlainTextOnly>>,
) -> Self
pub fn with_options( self, value: Vec<SlackBlockChoiceItem<SlackBlockPlainTextOnly>>, ) -> Self
Returns self with options set to value.
Trait Implementations§
Source§impl Clone for SlackBlockSuggestionOptions
impl Clone for SlackBlockSuggestionOptions
Source§impl Debug for SlackBlockSuggestionOptions
impl Debug for SlackBlockSuggestionOptions
Source§impl<'de> Deserialize<'de> for SlackBlockSuggestionOptions
impl<'de> Deserialize<'de> for SlackBlockSuggestionOptions
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<SlackBlockSuggestionOptionsInit> for SlackBlockSuggestionOptions
impl From<SlackBlockSuggestionOptionsInit> for SlackBlockSuggestionOptions
Source§fn from(value: SlackBlockSuggestionOptionsInit) -> Self
fn from(value: SlackBlockSuggestionOptionsInit) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for SlackBlockSuggestionOptions
Auto Trait Implementations§
impl Freeze for SlackBlockSuggestionOptions
impl RefUnwindSafe for SlackBlockSuggestionOptions
impl Send for SlackBlockSuggestionOptions
impl Sync for SlackBlockSuggestionOptions
impl Unpin for SlackBlockSuggestionOptions
impl UnsafeUnpin for SlackBlockSuggestionOptions
impl UnwindSafe for SlackBlockSuggestionOptions
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