pub struct FirestoreValue { /* private fields */ }Implementations§
Source§impl FirestoreValue
impl FirestoreValue
pub fn null() -> Self
pub fn from_bool(value: bool) -> Self
pub fn from_integer(value: i64) -> Self
pub fn from_double(value: f64) -> Self
pub fn from_timestamp(value: Timestamp) -> Self
pub fn from_string(value: impl Into<String>) -> Self
pub fn from_bytes(value: BytesValue) -> Self
pub fn from_reference(path: impl Into<String>) -> Self
pub fn from_geo_point(value: GeoPoint) -> Self
pub fn from_array(values: Vec<FirestoreValue>) -> Self
pub fn from_map(map: BTreeMap<String, FirestoreValue>) -> Self
pub fn kind(&self) -> &ValueKind
Trait Implementations§
Source§impl Clone for FirestoreValue
impl Clone for FirestoreValue
Source§fn clone(&self) -> FirestoreValue
fn clone(&self) -> FirestoreValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FirestoreValue
impl Debug for FirestoreValue
Source§impl PartialEq for FirestoreValue
impl PartialEq for FirestoreValue
impl StructuralPartialEq for FirestoreValue
Auto Trait Implementations§
impl Freeze for FirestoreValue
impl RefUnwindSafe for FirestoreValue
impl Send for FirestoreValue
impl Sync for FirestoreValue
impl Unpin for FirestoreValue
impl UnwindSafe for FirestoreValue
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