Enum neo4rs::BoltType

source ·
pub enum BoltType {
Show 21 variants String(BoltString), Boolean(BoltBoolean), Map(BoltMap), Null(BoltNull), Integer(BoltInteger), Float(BoltFloat), List(BoltList), Node(BoltNode), Relation(BoltRelation), UnboundedRelation(BoltUnboundedRelation), Point2D(BoltPoint2D), Point3D(BoltPoint3D), Bytes(BoltBytes), Path(BoltPath), Duration(BoltDuration), Date(BoltDate), Time(BoltTime), LocalTime(BoltLocalTime), DateTime(BoltDateTime), LocalDateTime(BoltLocalDateTime), DateTimeZoneId(BoltDateTimeZoneId),
}

Variants§

§

String(BoltString)

§

Boolean(BoltBoolean)

§

Map(BoltMap)

§

Null(BoltNull)

§

Integer(BoltInteger)

§

Float(BoltFloat)

§

List(BoltList)

§

Node(BoltNode)

§

Relation(BoltRelation)

§

UnboundedRelation(BoltUnboundedRelation)

§

Point2D(BoltPoint2D)

§

Point3D(BoltPoint3D)

§

Bytes(BoltBytes)

§

Path(BoltPath)

§

Duration(BoltDuration)

§

Date(BoltDate)

§

Time(BoltTime)

§

LocalTime(BoltLocalTime)

§

DateTime(BoltDateTime)

§

LocalDateTime(BoltLocalDateTime)

§

DateTimeZoneId(BoltDateTimeZoneId)

Trait Implementations§

source§

impl Clone for BoltType

source§

fn clone(&self) -> BoltType

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for BoltType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for BoltType

source§

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 Display for BoltType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<A: Into<BoltType> + Clone> From<&[A]> for BoltType

source§

fn from(value: &[A]) -> Self

Converts to this type from the input type.
source§

impl From<&[u8]> for BoltType

source§

fn from(value: &[u8]) -> Self

Converts to this type from the input type.
source§

impl From<&str> for BoltType

source§

fn from(value: &str) -> Self

Converts to this type from the input type.
source§

impl From<(NaiveDateTime, &str)> for BoltType

source§

fn from(value: (NaiveDateTime, &str)) -> Self

Converts to this type from the input type.
source§

impl From<(NaiveTime, FixedOffset)> for BoltType

source§

fn from(value: (NaiveTime, FixedOffset)) -> Self

Converts to this type from the input type.
source§

impl From<BoltNode> for BoltType

source§

fn from(value: BoltNode) -> Self

Converts to this type from the input type.
source§

impl From<BoltRelation> for BoltType

source§

fn from(value: BoltRelation) -> Self

Converts to this type from the input type.
source§

impl From<BoltUnboundedRelation> for BoltType

source§

fn from(value: BoltUnboundedRelation) -> Self

Converts to this type from the input type.
source§

impl From<DateTime<FixedOffset>> for BoltType

source§

fn from(value: DateTime<FixedOffset>) -> Self

Converts to this type from the input type.
source§

impl From<Duration> for BoltType

source§

fn from(value: Duration) -> BoltType

Converts to this type from the input type.
source§

impl<K, V> From<HashMap<K, V>> for BoltType
where K: Into<BoltString>, V: Into<BoltType>,

source§

fn from(value: HashMap<K, V>) -> Self

Converts to this type from the input type.
source§

impl From<NaiveDate> for BoltType

source§

fn from(value: NaiveDate) -> BoltType

Converts to this type from the input type.
source§

impl From<NaiveDateTime> for BoltType

source§

fn from(value: NaiveDateTime) -> BoltType

Converts to this type from the input type.
source§

impl From<NaiveTime> for BoltType

source§

fn from(value: NaiveTime) -> BoltType

Converts to this type from the input type.
source§

impl<T: Into<BoltType>> From<Option<T>> for BoltType

source§

fn from(value: Option<T>) -> Self

Converts to this type from the input type.
source§

impl From<String> for BoltType

source§

fn from(value: String) -> Self

Converts to this type from the input type.
source§

impl<A: Into<BoltType> + Clone> From<Vec<A>> for BoltType

source§

fn from(value: Vec<A>) -> BoltType

Converts to this type from the input type.
source§

impl From<Vec<u8>> for BoltType

source§

fn from(value: Vec<u8>) -> Self

Converts to this type from the input type.
source§

impl From<bool> for BoltType

source§

fn from(val: bool) -> Self

Converts to this type from the input type.
source§

impl From<f32> for BoltType

source§

fn from(val: f32) -> Self

Converts to this type from the input type.
source§

impl From<f64> for BoltType

source§

fn from(val: f64) -> Self

Converts to this type from the input type.
source§

impl From<i16> for BoltType

source§

fn from(val: i16) -> Self

Converts to this type from the input type.
source§

impl From<i32> for BoltType

source§

fn from(val: i32) -> Self

Converts to this type from the input type.
source§

impl From<i64> for BoltType

source§

fn from(value: i64) -> BoltType

Converts to this type from the input type.
source§

impl From<i8> for BoltType

source§

fn from(val: i8) -> Self

Converts to this type from the input type.
source§

impl From<u16> for BoltType

source§

fn from(val: u16) -> Self

Converts to this type from the input type.
source§

impl From<u32> for BoltType

source§

fn from(val: u32) -> Self

Converts to this type from the input type.
source§

impl<'de> IntoDeserializer<'de, DeError> for &'de BoltType

§

type Deserializer = BoltTypeDeserializer<'de>

The type of the deserializer being converted into.
source§

fn into_deserializer(self) -> Self::Deserializer

Convert this value into a deserializer.
source§

impl PartialEq for BoltType

source§

fn eq(&self, other: &BoltType) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl TryFrom<BoltType> for (NaiveDateTime, String)

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(input: BoltType) -> Result<(NaiveDateTime, String)>

Performs the conversion.
source§

impl TryFrom<BoltType> for (NaiveTime, Option<FixedOffset>)

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(input: BoltType) -> Result<(NaiveTime, Option<FixedOffset>)>

Performs the conversion.
source§

impl TryFrom<BoltType> for BoltList

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(input: BoltType) -> Result<BoltList>

Performs the conversion.
source§

impl TryFrom<BoltType> for BoltString

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(input: BoltType) -> Result<BoltString>

Performs the conversion.
source§

impl TryFrom<BoltType> for DateTime<FixedOffset>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(input: BoltType) -> Result<DateTime<FixedOffset>>

Performs the conversion.
source§

impl TryFrom<BoltType> for Duration

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(input: BoltType) -> Result<Duration>

Performs the conversion.
source§

impl<K, V> TryFrom<BoltType> for HashMap<K, V>
where K: From<BoltString> + Eq + Hash, V: TryFrom<BoltType, Error = Error>,

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(input: BoltType) -> Result<HashMap<K, V>>

Performs the conversion.
source§

impl TryFrom<BoltType> for NaiveDate

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(input: BoltType) -> Result<NaiveDate>

Performs the conversion.
source§

impl TryFrom<BoltType> for NaiveDateTime

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(input: BoltType) -> Result<NaiveDateTime>

Performs the conversion.
source§

impl TryFrom<BoltType> for Node

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(input: BoltType) -> Result<Node>

Performs the conversion.
source§

impl TryFrom<BoltType> for Path

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(input: BoltType) -> Result<Path>

Performs the conversion.
source§

impl TryFrom<BoltType> for Point2D

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(input: BoltType) -> Result<Point2D>

Performs the conversion.
source§

impl TryFrom<BoltType> for Point3D

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(input: BoltType) -> Result<Point3D>

Performs the conversion.
source§

impl TryFrom<BoltType> for Relation

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(input: BoltType) -> Result<Relation>

Performs the conversion.
source§

impl TryFrom<BoltType> for String

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(input: BoltType) -> Result<String>

Performs the conversion.
source§

impl TryFrom<BoltType> for UnboundedRelation

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(input: BoltType) -> Result<UnboundedRelation>

Performs the conversion.
source§

impl<A: TryFrom<BoltType, Error = Error>> TryFrom<BoltType> for Vec<A>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(input: BoltType) -> Result<Vec<A>>

Performs the conversion.
source§

impl TryFrom<BoltType> for Vec<u8>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(input: BoltType) -> Result<Vec<u8>>

Performs the conversion.
source§

impl TryFrom<BoltType> for bool

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(input: BoltType) -> Result<bool>

Performs the conversion.
source§

impl TryFrom<BoltType> for f64

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(input: BoltType) -> Result<f64>

Performs the conversion.
source§

impl TryFrom<BoltType> for i64

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(input: BoltType) -> Result<i64>

Performs the conversion.
source§

impl TryFrom<i128> for BoltType

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(val: i128) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<isize> for BoltType

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(val: isize) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<u128> for BoltType

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(val: u128) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<u64> for BoltType

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(val: u64) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<usize> for BoltType

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(val: usize) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl StructuralPartialEq for BoltType

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,