pub struct DocumentReference { /* private fields */ }Implementations§
Source§impl DocumentReference
impl DocumentReference
Sourcepub fn firestore(&self) -> &Firestore
pub fn firestore(&self) -> &Firestore
Returns the Firestore instance that created this document reference.
Sourcepub fn path(&self) -> &ResourcePath
pub fn path(&self) -> &ResourcePath
The full resource path to the document.
Sourcepub fn parent(&self) -> CollectionReference
pub fn parent(&self) -> CollectionReference
The parent collection containing this document.
Sourcepub fn collection(&self, path: &str) -> FirestoreResult<CollectionReference>
pub fn collection(&self, path: &str) -> FirestoreResult<CollectionReference>
Returns a reference to a subcollection rooted at this document.
Sourcepub fn with_converter<C>(&self, converter: C) -> ConvertedDocumentReference<C>where
C: FirestoreDataConverter,
pub fn with_converter<C>(&self, converter: C) -> ConvertedDocumentReference<C>where
C: FirestoreDataConverter,
Returns a typed document reference using the provided converter.
Trait Implementations§
Source§impl Clone for DocumentReference
impl Clone for DocumentReference
Source§fn clone(&self) -> DocumentReference
fn clone(&self) -> DocumentReference
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 DocumentReference
impl Debug for DocumentReference
Auto Trait Implementations§
impl Freeze for DocumentReference
impl RefUnwindSafe for DocumentReference
impl Send for DocumentReference
impl Sync for DocumentReference
impl Unpin for DocumentReference
impl UnwindSafe for DocumentReference
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