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)
F32(f32)
F64(f64)
Bool(bool)
List(Arc<Vec<Prop>>)
Map(Arc<FxHashMap<ArcStr, Prop>>)
NDTime(NaiveDateTime)
DTime(DateTime<Utc>)
Decimal(BigDecimal)
Implementations§
Source§impl Prop
impl Prop
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 dtype(&self) -> PropType
pub fn str<S: Into<ArcStr>>(s: S) -> 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
Source§impl From<BigDecimal> for Prop
impl From<BigDecimal> for Prop
Source§fn from(d: BigDecimal) -> Self
fn from(d: BigDecimal) -> Self
Converts to this type from the input type.
Source§impl PartialOrd for Prop
impl PartialOrd for Prop
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<Arc<Vec<Prop>>>
fn into_map(self) -> Option<Arc<FxHashMap<ArcStr, Prop>>>
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) -> Arc<Vec<Prop>>
fn unwrap_map(self) -> Arc<FxHashMap<ArcStr, Prop>>
fn unwrap_ndtime(self) -> NaiveDateTime
impl Eq for Prop
impl StructuralPartialEq for Prop
Auto Trait Implementations§
impl Freeze for Prop
impl RefUnwindSafe for Prop
impl Send for Prop
impl Sync for Prop
impl Unpin for Prop
impl UnwindSafe 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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