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
pub fn new(action_id: SlackActionId) -> Self
pub fn action_id(&mut self, value: SlackActionId) -> &mut Self
pub fn with_action_id(self, value: SlackActionId) -> Self
pub fn filetypes(&mut self, value: Vec<String>) -> &mut Self
pub fn reset_filetypes(&mut self) -> &mut Self
pub fn mopt_filetypes(&mut self, value: Option<Vec<String>>) -> &mut Self
pub fn with_filetypes(self, value: Vec<String>) -> Self
pub fn without_filetypes(self) -> Self
pub fn opt_filetypes(self, value: Option<Vec<String>>) -> Self
pub fn max_files(&mut self, value: u64) -> &mut Self
pub fn reset_max_files(&mut self) -> &mut Self
pub fn mopt_max_files(&mut self, value: Option<u64>) -> &mut Self
pub fn with_max_files(self, value: u64) -> Self
pub fn without_max_files(self) -> Self
pub fn opt_max_files(self, value: Option<u64>) -> Self
Trait Implementations§
Source§impl Clone for SlackBlockFileInputElement
impl Clone for SlackBlockFileInputElement
Source§fn clone(&self) -> SlackBlockFileInputElement
fn clone(&self) -> SlackBlockFileInputElement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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