pub enum PropRef<'a> {
Str(&'a str),
Num(PropNum),
Bool(bool),
List(Cow<'a, PropArray>),
Map(PropMapRef<'a>),
NDTime(NaiveDateTime),
DTime(DateTime<Utc>),
Decimal {
num: i128,
scale: i8,
},
}Variants§
Str(&'a str)
Num(PropNum)
Bool(bool)
List(Cow<'a, PropArray>)
Map(PropMapRef<'a>)
NDTime(NaiveDateTime)
DTime(DateTime<Utc>)
Decimal
Implementations§
Source§impl PropRef<'_>
impl PropRef<'_>
pub fn as_map_ref(&self) -> Option<PropMapRef<'_>>
Source§impl<'a> PropRef<'a>
impl<'a> PropRef<'a>
pub fn as_str(&self) -> Option<&'a str>
pub fn try_from_bd(bd: BigDecimal) -> Result<Self, InvalidBigDecimal>
Trait Implementations§
Source§impl<'a> From<&'a BigDecimal> for PropRef<'a>
impl<'a> From<&'a BigDecimal> for PropRef<'a>
Source§fn from(decimal: &'a BigDecimal) -> Self
fn from(decimal: &'a BigDecimal) -> Self
Converts to this type from the input type.
Source§impl From<NaiveDateTime> for PropRef<'_>
impl From<NaiveDateTime> for PropRef<'_>
Source§fn from(dt: NaiveDateTime) -> Self
fn from(dt: NaiveDateTime) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for PropRef<'a>
impl<'a> !UnwindSafe for PropRef<'a>
impl<'a> Freeze for PropRef<'a>
impl<'a> Send for PropRef<'a>
impl<'a> Sync for PropRef<'a>
impl<'a> Unpin for PropRef<'a>
impl<'a> UnsafeUnpin for PropRef<'a>
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,
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