pub struct SlackBlockFileInputElement {
pub action_id: SlackActionId,
pub filetypes: Option<Vec<String>>,
pub max_files: Option<u64>,
}Expand description
- https://docs.slack.dev/reference/block-kit/block-elements/file-input-element
Fields§
§action_id: SlackActionId§filetypes: Option<Vec<String>>§max_files: Option<u64>Implementations§
Source§impl SlackBlockFileInputElement
impl SlackBlockFileInputElement
Sourcepub fn new(action_id: SlackActionId) -> Self
pub fn new(action_id: SlackActionId) -> Self
Creates a new SlackBlockFileInputElement from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn action_id(&mut self, value: SlackActionId) -> &mut Self
pub fn action_id(&mut self, value: SlackActionId) -> &mut Self
Sets action_id to value.
Sourcepub fn with_action_id(self, value: SlackActionId) -> Self
pub fn with_action_id(self, value: SlackActionId) -> Self
Returns self with action_id set to value.
Sourcepub fn reset_filetypes(&mut self) -> &mut Self
pub fn reset_filetypes(&mut self) -> &mut Self
Sets filetypes to None.
Sourcepub fn mopt_filetypes(&mut self, value: Option<Vec<String>>) -> &mut Self
pub fn mopt_filetypes(&mut self, value: Option<Vec<String>>) -> &mut Self
Sets filetypes to the given Option.
Sourcepub fn with_filetypes(self, value: Vec<String>) -> Self
pub fn with_filetypes(self, value: Vec<String>) -> Self
Returns self with filetypes set to Some(value).
Sourcepub fn without_filetypes(self) -> Self
pub fn without_filetypes(self) -> Self
Returns self with filetypes set to None.
Sourcepub fn opt_filetypes(self, value: Option<Vec<String>>) -> Self
pub fn opt_filetypes(self, value: Option<Vec<String>>) -> Self
Returns self with filetypes set to the given Option.
Sourcepub fn reset_max_files(&mut self) -> &mut Self
pub fn reset_max_files(&mut self) -> &mut Self
Sets max_files to None.
Sourcepub fn mopt_max_files(&mut self, value: Option<u64>) -> &mut Self
pub fn mopt_max_files(&mut self, value: Option<u64>) -> &mut Self
Sets max_files to the given Option.
Sourcepub fn with_max_files(self, value: u64) -> Self
pub fn with_max_files(self, value: u64) -> Self
Returns self with max_files set to Some(value).
Sourcepub fn without_max_files(self) -> Self
pub fn without_max_files(self) -> Self
Returns self with max_files set to None.
Sourcepub fn opt_max_files(self, value: Option<u64>) -> Self
pub fn opt_max_files(self, value: Option<u64>) -> Self
Returns self with max_files set to the given Option.
Trait Implementations§
Source§impl Clone for SlackBlockFileInputElement
impl Clone for SlackBlockFileInputElement
Source§impl Debug for SlackBlockFileInputElement
impl Debug for SlackBlockFileInputElement
Source§impl<'de> Deserialize<'de> for SlackBlockFileInputElement
impl<'de> Deserialize<'de> for SlackBlockFileInputElement
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<SlackBlockFileInputElement> for SlackInputBlockElement
impl From<SlackBlockFileInputElement> for SlackInputBlockElement
Source§fn from(element: SlackBlockFileInputElement) -> Self
fn from(element: SlackBlockFileInputElement) -> Self
Converts to this type from the input type.
Source§impl From<SlackBlockFileInputElementInit> for SlackBlockFileInputElement
impl From<SlackBlockFileInputElementInit> for SlackBlockFileInputElement
Source§fn from(value: SlackBlockFileInputElementInit) -> Self
fn from(value: SlackBlockFileInputElementInit) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for SlackBlockFileInputElement
Auto Trait Implementations§
impl Freeze for SlackBlockFileInputElement
impl RefUnwindSafe for SlackBlockFileInputElement
impl Send for SlackBlockFileInputElement
impl Sync for SlackBlockFileInputElement
impl Unpin for SlackBlockFileInputElement
impl UnsafeUnpin for SlackBlockFileInputElement
impl UnwindSafe for SlackBlockFileInputElement
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