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
pub fn new() -> Self
pub fn title(&mut self, value: String) -> &mut Self
pub fn reset_title(&mut self) -> &mut Self
pub fn mopt_title(&mut self, value: Option<String>) -> &mut Self
pub fn with_title(self, value: String) -> Self
pub fn without_title(self) -> Self
pub fn opt_title(self, value: Option<String>) -> Self
pub fn value(&mut self, value: String) -> &mut Self
pub fn reset_value(&mut self) -> &mut Self
pub fn mopt_value(&mut self, value: Option<String>) -> &mut Self
pub fn with_value(self, value: String) -> Self
pub fn without_value(self) -> Self
pub fn opt_value(self, value: Option<String>) -> Self
pub fn short(&mut self, value: bool) -> &mut Self
pub fn reset_short(&mut self) -> &mut Self
pub fn mopt_short(&mut self, value: Option<bool>) -> &mut Self
pub fn with_short(self, value: bool) -> Self
pub fn without_short(self) -> Self
pub fn opt_short(self, value: Option<bool>) -> Self
Trait Implementations§
source§impl Clone for SlackMessageAttachmentFieldObject
impl Clone for SlackMessageAttachmentFieldObject
source§fn clone(&self) -> SlackMessageAttachmentFieldObject
fn clone(&self) -> SlackMessageAttachmentFieldObject
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§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.
source§impl PartialEq for SlackMessageAttachmentFieldObject
impl PartialEq for SlackMessageAttachmentFieldObject
source§fn eq(&self, other: &SlackMessageAttachmentFieldObject) -> bool
fn eq(&self, other: &SlackMessageAttachmentFieldObject) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SlackMessageAttachmentFieldObject
Auto Trait Implementations§
impl RefUnwindSafe for SlackMessageAttachmentFieldObject
impl Send for SlackMessageAttachmentFieldObject
impl Sync for SlackMessageAttachmentFieldObject
impl Unpin 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