pub struct DnsPodDate {
pub date: Option<NaiveDate>,
}Expand description
注意: 服务器有时会返回 “0000-00-00”, 会导致 date 解析出错 所以直接用 String 会有更好的兼容性
Fields§
§date: Option<NaiveDate>Trait Implementations§
Source§impl Clone for DnsPodDate
impl Clone for DnsPodDate
Source§fn clone(&self) -> DnsPodDate
fn clone(&self) -> DnsPodDate
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 DnsPodDate
impl Debug for DnsPodDate
Source§impl<'de> Deserialize<'de> for DnsPodDate
impl<'de> Deserialize<'de> for DnsPodDate
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 Serialize for DnsPodDate
impl Serialize for DnsPodDate
Auto Trait Implementations§
impl Freeze for DnsPodDate
impl RefUnwindSafe for DnsPodDate
impl Send for DnsPodDate
impl Sync for DnsPodDate
impl Unpin for DnsPodDate
impl UnwindSafe for DnsPodDate
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