pub enum Prop {
}Expand description
Denotes the types of properties allowed to be stored in the graph.
Variants§
Str(ArcStr)
U8(u8)
U16(u16)
I32(i32)
I64(i64)
U32(u32)
U64(u64)
F64(f64)
F32(f32)
Bool(bool)
List(PropArray)
Map(Arc<FxHashMap<ArcStr, Prop>>)
NDTime(NaiveDateTime)
DTime(DateTime<Utc>)
Decimal(BigDecimal)
Implementations§
Source§impl Prop
impl Prop
pub fn cast_num<T>(self) -> Option<T>where
T: FromPrimitive + Bounded,
Sourcepub fn try_cast(self, prop_type: PropType) -> Option<Prop>
pub fn try_cast(self, prop_type: PropType) -> Option<Prop>
convert prop into another prop type (primarily for numerical conversions)
Sourcepub fn as_u64_lossless(&self) -> Option<u64>
pub fn as_u64_lossless(&self) -> Option<u64>
Losslessly widen unsigned integer variants to u64.
Sourcepub fn as_i64_lossless(&self) -> Option<i64>
pub fn as_i64_lossless(&self) -> Option<i64>
Losslessly widen signed integer variants to i64.
Sourcepub fn as_f64_lossless(&self) -> Option<f64>
pub fn as_f64_lossless(&self) -> Option<f64>
Losslessly widen float variants to f64.
pub fn try_from_bd(bd: BigDecimal) -> Result<Prop, InvalidBigDecimal>
pub fn map( vals: impl IntoIterator<Item = (impl Into<ArcStr>, impl Into<Prop>)>, ) -> Self
pub fn as_map(&self) -> Option<SerdeArrowMap<'_>>
pub fn dtype(&self) -> PropType
pub fn str<S: Into<ArcStr>>(s: S) -> Prop
pub fn list<P: Into<Prop>, I: IntoIterator<Item = P>>(vals: I) -> Prop
pub fn add(self, other: Prop) -> Option<Prop>
pub fn min(self, other: Prop) -> Option<Prop>
pub fn max(self, other: Prop) -> Option<Prop>
pub fn divide(self, other: Prop) -> Option<Prop>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Prop
impl<'de> Deserialize<'de> for Prop
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
impl Eq for Prop
Source§impl From<BigDecimal> for Prop
impl From<BigDecimal> for Prop
Source§fn from(value: BigDecimal) -> Self
fn from(value: BigDecimal) -> Self
Converts to this type from the input type.
Source§impl From<NaiveDateTime> for Prop
impl From<NaiveDateTime> for Prop
Source§fn from(value: NaiveDateTime) -> Self
fn from(value: NaiveDateTime) -> Self
Converts to this type from the input type.
Source§impl From<Prop> for PropUntagged
impl From<Prop> for PropUntagged
Source§impl From<PropUntagged> for Prop
impl From<PropUntagged> for Prop
Source§fn from(p: PropUntagged) -> Self
fn from(p: PropUntagged) -> Self
Converts to this type from the input type.
Source§impl PartialEq<Prop> for PropUntagged
impl PartialEq<Prop> for PropUntagged
Source§impl PartialOrd for Prop
impl PartialOrd for Prop
Source§impl PropArrayUnwrap for Prop
impl PropArrayUnwrap for Prop
fn into_array(self) -> Option<ArrayRef>
fn unwrap_array(self) -> ArrayRef
Source§impl PropUnwrap for Prop
impl PropUnwrap for Prop
fn into_u8(self) -> Option<u8>
fn into_u16(self) -> Option<u16>
fn into_str(self) -> Option<ArcStr>
fn into_i32(self) -> Option<i32>
fn into_i64(self) -> Option<i64>
fn into_u32(self) -> Option<u32>
fn into_u64(self) -> Option<u64>
fn into_f32(self) -> Option<f32>
fn into_f64(self) -> Option<f64>
fn into_bool(self) -> Option<bool>
fn into_list(self) -> Option<PropArray>
fn into_map(self) -> Option<Arc<FxHashMap<ArcStr, Prop>>>
fn into_dtime(self) -> Option<DateTime<Utc>>
fn into_ndtime(self) -> Option<NaiveDateTime>
fn as_f64(&self) -> Option<f64>
fn into_decimal(self) -> Option<BigDecimal>
fn unwrap_u8(self) -> u8
fn unwrap_u16(self) -> u16
fn unwrap_str(self) -> ArcStr
fn unwrap_i32(self) -> i32
fn unwrap_i64(self) -> i64
fn unwrap_u32(self) -> u32
fn unwrap_u64(self) -> u64
fn unwrap_f32(self) -> f32
fn unwrap_f64(self) -> f64
fn unwrap_bool(self) -> bool
fn unwrap_list(self) -> PropArray
fn unwrap_map(self) -> Arc<FxHashMap<ArcStr, Prop>>
fn unwrap_ndtime(self) -> NaiveDateTime
fn unwrap_decimal(self) -> BigDecimal
fn unwrap_dtime(self) -> DateTime<Utc>
impl StructuralPartialEq for Prop
Auto Trait Implementations§
impl !RefUnwindSafe for Prop
impl !UnwindSafe for Prop
impl Freeze for Prop
impl Send for Prop
impl Sync for Prop
impl Unpin for Prop
impl UnsafeUnpin for Prop
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more