pub struct Date { /* private fields */ }
Expand description
dBase representation of date
Note
This is really really naive date, it just holds the day, moth, year value with just a very few checks.
Also, dBase files do not have concept of timezones.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Date
impl<'de> Deserialize<'de> for Date
source§fn deserialize<D>(
deserializer: D
) -> Result<Self, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<Self, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<Date> for FieldValue
impl From<Date> for FieldValue
source§impl PartialEq for Date
impl PartialEq for Date
source§impl Serialize for Date
impl Serialize for Date
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl TryFrom<FieldValue> for Date
impl TryFrom<FieldValue> for Date
§type Error = FieldConversionError
type Error = FieldConversionError
The type returned in the event of a conversion error.
impl Copy for Date
impl StructuralPartialEq for Date
Auto Trait Implementations§
impl RefUnwindSafe for Date
impl Send for Date
impl Sync for Date
impl Unpin for Date
impl UnwindSafe for Date
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<S> ReadableRecord for Swhere
S: DeserializeOwned,
impl<S> ReadableRecord for Swhere
S: DeserializeOwned,
source§fn read_using<T, R>(
field_iterator: &mut FieldIterator<'_, T, R>
) -> Result<S, FieldIOError>
fn read_using<T, R>( field_iterator: &mut FieldIterator<'_, T, R> ) -> Result<S, FieldIOError>
function to be implemented that returns a new instance of your type
using values read from the `FieldIterator’
source§impl<T> WritableRecord for Twhere
T: Serialize,
impl<T> WritableRecord for Twhere
T: Serialize,
source§fn write_using<W, 'a>(
&self,
field_writer: &mut FieldWriter<'a, W>
) -> Result<(), FieldIOError>where
W: Write,
fn write_using<W, 'a>(
&self,
field_writer: &mut FieldWriter<'a, W>
) -> Result<(), FieldIOError>where
W: Write,
Use the FieldWriter to write the fields of the record