pub struct SlackRichTextDate {
pub timestamp: SlackDateTime,
pub format: String,
pub fallback: Option<String>,
pub style: Option<SlackRichTextStyle>,
}Fields§
§timestamp: SlackDateTime§format: String§fallback: Option<String>§style: Option<SlackRichTextStyle>Implementations§
Source§impl SlackRichTextDate
impl SlackRichTextDate
pub fn new(timestamp: SlackDateTime, format: String) -> Self
pub fn timestamp(&mut self, value: SlackDateTime) -> &mut Self
pub fn with_timestamp(self, value: SlackDateTime) -> Self
pub fn format(&mut self, value: String) -> &mut Self
pub fn with_format(self, value: String) -> Self
pub fn fallback(&mut self, value: String) -> &mut Self
pub fn reset_fallback(&mut self) -> &mut Self
pub fn mopt_fallback(&mut self, value: Option<String>) -> &mut Self
pub fn with_fallback(self, value: String) -> Self
pub fn without_fallback(self) -> Self
pub fn opt_fallback(self, value: Option<String>) -> Self
pub fn style(&mut self, value: SlackRichTextStyle) -> &mut Self
pub fn reset_style(&mut self) -> &mut Self
pub fn mopt_style(&mut self, value: Option<SlackRichTextStyle>) -> &mut Self
pub fn with_style(self, value: SlackRichTextStyle) -> Self
pub fn without_style(self) -> Self
pub fn opt_style(self, value: Option<SlackRichTextStyle>) -> Self
Trait Implementations§
Source§impl Clone for SlackRichTextDate
impl Clone for SlackRichTextDate
Source§fn clone(&self) -> SlackRichTextDate
fn clone(&self) -> SlackRichTextDate
Returns a duplicate 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 Debug for SlackRichTextDate
impl Debug for SlackRichTextDate
Source§impl<'de> Deserialize<'de> for SlackRichTextDate
impl<'de> Deserialize<'de> for SlackRichTextDate
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<SlackRichTextDateInit> for SlackRichTextDate
impl From<SlackRichTextDateInit> for SlackRichTextDate
Source§fn from(value: SlackRichTextDateInit) -> Self
fn from(value: SlackRichTextDateInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlackRichTextDate
impl PartialEq for SlackRichTextDate
Source§impl Serialize for SlackRichTextDate
impl Serialize for SlackRichTextDate
impl StructuralPartialEq for SlackRichTextDate
Auto Trait Implementations§
impl Freeze for SlackRichTextDate
impl RefUnwindSafe for SlackRichTextDate
impl Send for SlackRichTextDate
impl Sync for SlackRichTextDate
impl Unpin for SlackRichTextDate
impl UnsafeUnpin for SlackRichTextDate
impl UnwindSafe for SlackRichTextDate
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