pub struct SlackMessageAttachmentFieldObject {
pub title: Option<String>,
pub value: Option<String>,
pub short: Option<bool>,
}Fields§
§title: Option<String>§value: Option<String>§short: Option<bool>Implementations§
Source§impl SlackMessageAttachmentFieldObject
impl SlackMessageAttachmentFieldObject
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SlackMessageAttachmentFieldObject from its required fields. Option fields start as None, and fields with #[default] take their default.
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.
Sourcepub fn opt_title(self, value: Option<String>) -> Self
pub fn opt_title(self, value: Option<String>) -> Self
Returns self with title set to the given Option.
Sourcepub fn reset_value(&mut self) -> &mut Self
pub fn reset_value(&mut self) -> &mut Self
Sets value to None.
Sourcepub fn mopt_value(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_value(&mut self, value: Option<String>) -> &mut Self
Sets value to the given Option.
Sourcepub fn with_value(self, value: String) -> Self
pub fn with_value(self, value: String) -> Self
Returns self with value set to Some(value).
Sourcepub fn without_value(self) -> Self
pub fn without_value(self) -> Self
Returns self with value set to None.
Sourcepub fn opt_value(self, value: Option<String>) -> Self
pub fn opt_value(self, value: Option<String>) -> Self
Returns self with value set to the given Option.
Sourcepub fn reset_short(&mut self) -> &mut Self
pub fn reset_short(&mut self) -> &mut Self
Sets short to None.
Sourcepub fn mopt_short(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_short(&mut self, value: Option<bool>) -> &mut Self
Sets short to the given Option.
Sourcepub fn with_short(self, value: bool) -> Self
pub fn with_short(self, value: bool) -> Self
Returns self with short set to Some(value).
Sourcepub fn without_short(self) -> Self
pub fn without_short(self) -> Self
Returns self with short set to None.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SlackMessageAttachmentFieldObject
impl<'de> Deserialize<'de> for SlackMessageAttachmentFieldObject
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<SlackMessageAttachmentFieldObjectInit> for SlackMessageAttachmentFieldObject
impl From<SlackMessageAttachmentFieldObjectInit> for SlackMessageAttachmentFieldObject
Source§fn from(value: SlackMessageAttachmentFieldObjectInit) -> Self
fn from(value: SlackMessageAttachmentFieldObjectInit) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for SlackMessageAttachmentFieldObject
Auto Trait Implementations§
impl Freeze for SlackMessageAttachmentFieldObject
impl RefUnwindSafe for SlackMessageAttachmentFieldObject
impl Send for SlackMessageAttachmentFieldObject
impl Sync for SlackMessageAttachmentFieldObject
impl Unpin for SlackMessageAttachmentFieldObject
impl UnsafeUnpin for SlackMessageAttachmentFieldObject
impl UnwindSafe for SlackMessageAttachmentFieldObject
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