pub struct JsonProtoSerializer { /* private fields */ }Implementations§
Source§impl JsonProtoSerializer
impl JsonProtoSerializer
pub fn new(database_id: DatabaseId) -> Self
pub fn database_id(&self) -> &DatabaseId
pub fn database_name(&self) -> String
pub fn document_name(&self, key: &DocumentKey) -> String
pub fn encode_document_fields(&self, map: &MapValue) -> JsonValue
pub fn encode_commit_body(&self, key: &DocumentKey, map: &MapValue) -> JsonValue
pub fn decode_document_fields( &self, value: &JsonValue, ) -> FirestoreResult<Option<MapValue>>
pub fn decode_map_value(&self, value: &JsonValue) -> FirestoreResult<MapValue>
pub fn encode_value(&self, value: &FirestoreValue) -> JsonValue
Trait Implementations§
Source§impl Clone for JsonProtoSerializer
impl Clone for JsonProtoSerializer
Source§fn clone(&self) -> JsonProtoSerializer
fn clone(&self) -> JsonProtoSerializer
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 moreAuto Trait Implementations§
impl Freeze for JsonProtoSerializer
impl RefUnwindSafe for JsonProtoSerializer
impl Send for JsonProtoSerializer
impl Sync for JsonProtoSerializer
impl Unpin for JsonProtoSerializer
impl UnwindSafe for JsonProtoSerializer
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