Struct slack_morphism::prelude::SlackTs
source · pub struct SlackTs(pub String);
Tuple Fields§
§0: String
Implementations§
source§impl SlackTs
impl SlackTs
pub fn to_date_time(&self) -> Result<DateTime<Utc>, ParseIntError>
👎Deprecated since 1.3.5: Use to_date_time_opt() with more accurate error handling and results from chrono::timestamp_millis_opt
pub fn to_date_time_opt(&self) -> Option<DateTime<Utc>>
Trait Implementations§
source§impl<'de> Deserialize<'de> for SlackTs
impl<'de> Deserialize<'de> for SlackTs
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 PartialEq for SlackTs
impl PartialEq for SlackTs
source§impl ValueStruct for SlackTs
impl ValueStruct for SlackTs
impl Eq for SlackTs
impl StructuralEq for SlackTs
impl StructuralPartialEq for SlackTs
Auto Trait Implementations§
impl RefUnwindSafe for SlackTs
impl Send for SlackTs
impl Sync for SlackTs
impl Unpin for SlackTs
impl UnwindSafe for SlackTs
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