Skip to main content

ToDateTime

Trait ToDateTime 

Source
pub trait ToDateTime {
    // Required method
    fn as_datetime(&self) -> Result<UtcDateTime, Error>;
}
Expand description

Trait providing a function to convert the object to a UtcDateTime.

Required Methods§

Source

fn as_datetime(&self) -> Result<UtcDateTime, Error>

Converts the object into a UtcDateTime, or throws an Error.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ToDateTime for Value

Implementors§