pub struct SlackApiFilesComplete {
pub id: SlackFileId,
pub title: Option<String>,
}Fields§
§id: SlackFileId§title: Option<String>Implementations§
Source§impl SlackApiFilesComplete
impl SlackApiFilesComplete
Sourcepub fn new(id: SlackFileId) -> Self
pub fn new(id: SlackFileId) -> Self
Creates a new SlackApiFilesComplete from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn id(&mut self, value: SlackFileId) -> &mut Self
pub fn id(&mut self, value: SlackFileId) -> &mut Self
Sets id to value.
Sourcepub fn with_id(self, value: SlackFileId) -> Self
pub fn with_id(self, value: SlackFileId) -> Self
Returns self with id set to value.
Sourcepub fn reset_title(&mut self) -> &mut Self
pub fn reset_title(&mut self) -> &mut Self
Sets title to None.
Sourcepub fn mopt_title(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_title(&mut self, value: Option<String>) -> &mut Self
Sets title to the given Option.
Sourcepub fn with_title(self, value: String) -> Self
pub fn with_title(self, value: String) -> Self
Returns self with title set to Some(value).
Sourcepub fn without_title(self) -> Self
pub fn without_title(self) -> Self
Returns self with title set to None.
Trait Implementations§
Source§impl Clone for SlackApiFilesComplete
impl Clone for SlackApiFilesComplete
Source§impl Debug for SlackApiFilesComplete
impl Debug for SlackApiFilesComplete
Source§impl<'de> Deserialize<'de> for SlackApiFilesComplete
impl<'de> Deserialize<'de> for SlackApiFilesComplete
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<SlackApiFilesCompleteInit> for SlackApiFilesComplete
impl From<SlackApiFilesCompleteInit> for SlackApiFilesComplete
Source§fn from(value: SlackApiFilesCompleteInit) -> Self
fn from(value: SlackApiFilesCompleteInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlackApiFilesComplete
impl PartialEq for SlackApiFilesComplete
Source§impl Serialize for SlackApiFilesComplete
impl Serialize for SlackApiFilesComplete
impl StructuralPartialEq for SlackApiFilesComplete
Auto Trait Implementations§
impl Freeze for SlackApiFilesComplete
impl RefUnwindSafe for SlackApiFilesComplete
impl Send for SlackApiFilesComplete
impl Sync for SlackApiFilesComplete
impl Unpin for SlackApiFilesComplete
impl UnsafeUnpin for SlackApiFilesComplete
impl UnwindSafe for SlackApiFilesComplete
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