pub enum FieldValue {
IntegerValue(i32),
IntegerListValue(Vec<i32>),
Integer64Value(i64),
Integer64ListValue(Vec<i64>),
StringValue(String),
StringListValue(Vec<String>),
RealValue(f64),
RealListValue(Vec<f64>),
DateValue(NaiveDate),
DateTimeValue(DateTime<FixedOffset>),
}Variants§
IntegerValue(i32)
IntegerListValue(Vec<i32>)
Integer64Value(i64)
Integer64ListValue(Vec<i64>)
StringValue(String)
StringListValue(Vec<String>)
RealValue(f64)
RealListValue(Vec<f64>)
DateValue(NaiveDate)
DateTimeValue(DateTime<FixedOffset>)
Implementations§
Source§impl FieldValue
impl FieldValue
Sourcepub fn into_string(self) -> Option<String>
pub fn into_string(self) -> Option<String>
Interpret the value as String. Returns None if the value is something else.
Sourcepub fn into_real(self) -> Option<f64>
pub fn into_real(self) -> Option<f64>
Interpret the value as f64. Returns None if the value is something else.
Sourcepub fn into_int(self) -> Option<i32>
pub fn into_int(self) -> Option<i32>
Interpret the value as i32. Returns None if the value is something else.
Sourcepub fn into_int64(self) -> Option<i64>
pub fn into_int64(self) -> Option<i64>
Interpret the value as i64. Returns None if the value is something else.
Sourcepub fn into_date(self) -> Option<NaiveDate>
pub fn into_date(self) -> Option<NaiveDate>
Interpret the value as NaiveDate. Returns None if the value is something else.
Sourcepub fn into_datetime(self) -> Option<DateTime<FixedOffset>>
pub fn into_datetime(self) -> Option<DateTime<FixedOffset>>
Interpret the value as DateTime. Returns None if the value is something else.
pub fn ogr_field_type(&self) -> Type
Trait Implementations§
Source§impl Clone for FieldValue
impl Clone for FieldValue
Source§fn clone(&self) -> FieldValue
fn clone(&self) -> FieldValue
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 FieldValue
impl Debug for FieldValue
Source§impl PartialEq for FieldValue
impl PartialEq for FieldValue
impl StructuralPartialEq for FieldValue
Auto Trait Implementations§
impl Freeze for FieldValue
impl RefUnwindSafe for FieldValue
impl Send for FieldValue
impl Sync for FieldValue
impl Unpin for FieldValue
impl UnwindSafe for FieldValue
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