pub struct Firestore { /* private fields */ }Implementations§
Source§impl Firestore
impl Firestore
Sourcepub fn app(&self) -> &FirebaseApp
pub fn app(&self) -> &FirebaseApp
Returns the FirebaseApp this Firestore instance is scoped to.
Sourcepub fn database_id(&self) -> &DatabaseId
pub fn database_id(&self) -> &DatabaseId
The fully qualified database identifier (project + database name).
Sourcepub fn collection(&self, path: &str) -> FirestoreResult<CollectionReference>
pub fn collection(&self, path: &str) -> FirestoreResult<CollectionReference>
Creates a CollectionReference pointing at path.
The path is interpreted relative to the Firestore root using forward
slashes to separate segments (e.g. "users/alovelace/repos").
Sourcepub fn doc(&self, path: &str) -> FirestoreResult<DocumentReference>
pub fn doc(&self, path: &str) -> FirestoreResult<DocumentReference>
Creates a DocumentReference pointing at path.
The path must contain an even number of segments (collection/doc pairs).
Sourcepub fn from_arc(arc: Arc<Self>) -> Self
pub fn from_arc(arc: Arc<Self>) -> Self
Clones a Firestore handle that has been wrapped in an Arc.
Sourcepub fn project_id(&self) -> &str
pub fn project_id(&self) -> &str
Returns the project identifier backing this database.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Firestore
impl RefUnwindSafe for Firestore
impl Send for Firestore
impl Sync for Firestore
impl Unpin for Firestore
impl UnwindSafe for Firestore
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