Struct imap_types::datetime::NaiveDate
source · pub struct NaiveDate(/* private fields */);Implementations§
source§impl NaiveDate
impl NaiveDate
pub fn validate(value: &NaiveDate) -> Result<(), NaiveDateError>
sourcepub fn unvalidated(value: NaiveDate) -> Self
pub fn unvalidated(value: NaiveDate) -> Self
Constructs a naive date without validation.
§Warning: IMAP conformance
The caller must ensure that value is valid according to Self::validate. Failing to do
so may create invalid/unparsable IMAP messages, or even produce unintended protocol flows.
Do not call this constructor with untrusted data.
Note: This method will panic! on wrong input in debug builds.
Trait Implementations§
source§impl<'a> Arbitrary<'a> for NaiveDate
impl<'a> Arbitrary<'a> for NaiveDate
source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moresource§impl<'de> Deserialize<'de> for NaiveDate
impl<'de> Deserialize<'de> for NaiveDate
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 IntoBoundedStatic for NaiveDate
impl IntoBoundedStatic for NaiveDate
source§impl PartialEq for NaiveDate
impl PartialEq for NaiveDate
source§impl ToBoundedStatic for NaiveDate
impl ToBoundedStatic for NaiveDate
impl Eq for NaiveDate
impl StructuralPartialEq for NaiveDate
Auto Trait Implementations§
impl Freeze for NaiveDate
impl RefUnwindSafe for NaiveDate
impl Send for NaiveDate
impl Sync for NaiveDate
impl Unpin for NaiveDate
impl UnwindSafe for NaiveDate
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)