pub enum Value {
Null,
Bool(bool),
Int(i64),
Float(f64),
String(String),
Bytes(Vec<u8>),
Timestamp(Timestamp),
Duration(i64, i32),
LatLng(f64, f64),
Path(Vec<String>),
List(Vec<Value>),
Map(Map),
}Expand description
A value as rules see it. Firestore values convert to these (timestamp, bytes, latlng,
a reference as a path, maps and lists); the others only come from rules.
Variants§
Null
Bool(bool)
Int(i64)
Float(f64)
String(String)
Bytes(Vec<u8>)
Timestamp(Timestamp)
Duration(i64, i32)
Seconds and nanoseconds.
LatLng(f64, f64)
Latitude and longitude, in degrees.
Path(Vec<String>)
The segments of a path. A reference holds its document’s path from databases, like
Request::path and Document::path.
List(Vec<Value>)
Map(Map)
Trait Implementations§
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Forget for Value
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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