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
Tests for
self
and other
values to be equal, and is used by ==
.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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)