Enum influxdb2_structmap::value::Value[][src]

pub enum Value {
    Unknown,
    String(String),
    Double(f64),
    Bool(bool),
    Long(i64),
    UnsignedLong(u64),
    Duration(Duration),
    Base64Binary(Vec<u8>),
    TimeRFC(DateTime<FixedOffset>),
}
Expand description

Represents primitive types that are supported for conversion into a BTreeMap that can support heterogeneous values. Inspired by serde_json::Values.

Variants

Unknown
String

Tuple Fields of String

0: String
Double

Tuple Fields of Double

0: f64
Bool

Tuple Fields of Bool

0: bool
Long

Tuple Fields of Long

0: i64
UnsignedLong

Tuple Fields of UnsignedLong

0: u64
Duration

Tuple Fields of Duration

0: Duration
Base64Binary

Tuple Fields of Base64Binary

0: Vec<u8>
TimeRFC

Tuple Fields of TimeRFC

0: DateTime<FixedOffset>

Implementations

Given a genericized input type, encapsulate it as a Value that can be used in a map container type when converting to and from a struct.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.