pub trait FromOffsetDateTime {
// Required method
fn from_offset_datetime(input: OffsetDateTime) -> Self;
}
Expand description
A trait for allowing conversion from an [OffsetDateTime
] to a type.
Required Methods§
Sourcefn from_offset_datetime(input: OffsetDateTime) -> Self
fn from_offset_datetime(input: OffsetDateTime) -> Self
Converts an [OffsetDateTime
] into a type.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.