pub struct CollectionReference { /* private fields */ }Implementations§
Source§impl CollectionReference
impl CollectionReference
Sourcepub fn firestore(&self) -> &Firestore
pub fn firestore(&self) -> &Firestore
Returns the Firestore instance that created this collection reference.
Sourcepub fn path(&self) -> &ResourcePath
pub fn path(&self) -> &ResourcePath
The full resource path of the collection (e.g. rooms/eros/messages).
Sourcepub fn parent(&self) -> Option<DocumentReference>
pub fn parent(&self) -> Option<DocumentReference>
Returns the document that logically contains this collection, if any.
Sourcepub fn doc(
&self,
document_id: Option<&str>,
) -> FirestoreResult<DocumentReference>
pub fn doc( &self, document_id: Option<&str>, ) -> FirestoreResult<DocumentReference>
Returns a reference to the document identified by document_id.
When document_id is None, an auto-ID is generated.
pub fn with_converter<C>(&self, converter: C) -> ConvertedCollectionReference<C>where
C: FirestoreDataConverter,
Trait Implementations§
Source§impl Clone for CollectionReference
impl Clone for CollectionReference
Source§fn clone(&self) -> CollectionReference
fn clone(&self) -> CollectionReference
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 CollectionReference
impl Debug for CollectionReference
Auto Trait Implementations§
impl Freeze for CollectionReference
impl RefUnwindSafe for CollectionReference
impl Send for CollectionReference
impl Sync for CollectionReference
impl Unpin for CollectionReference
impl UnwindSafe for CollectionReference
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