pub struct DatabaseId { /* private fields */ }Implementations§
Source§impl DatabaseId
impl DatabaseId
pub fn new(project_id: impl Into<String>, database: impl Into<String>) -> Self
pub fn default(project_id: impl Into<String>) -> Self
pub fn from_app(app: &FirebaseApp) -> FirestoreResult<Self>
pub fn project_id(&self) -> &str
pub fn database(&self) -> &str
pub fn with_database(&self, database: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for DatabaseId
impl Clone for DatabaseId
Source§fn clone(&self) -> DatabaseId
fn clone(&self) -> DatabaseId
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 DatabaseId
impl Debug for DatabaseId
Source§impl Hash for DatabaseId
impl Hash for DatabaseId
Source§impl PartialEq for DatabaseId
impl PartialEq for DatabaseId
impl Eq for DatabaseId
impl StructuralPartialEq for DatabaseId
Auto Trait Implementations§
impl Freeze for DatabaseId
impl RefUnwindSafe for DatabaseId
impl Send for DatabaseId
impl Sync for DatabaseId
impl Unpin for DatabaseId
impl UnwindSafe for DatabaseId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.