pub struct DocumentKey { /* private fields */ }Implementations§
Source§impl DocumentKey
impl DocumentKey
pub fn from_path(path: ResourcePath) -> FirestoreResult<Self>
pub fn from_string(path: &str) -> FirestoreResult<Self>
pub fn collection_path(&self) -> ResourcePath
pub fn path(&self) -> &ResourcePath
pub fn id(&self) -> &str
Trait Implementations§
Source§impl Clone for DocumentKey
impl Clone for DocumentKey
Source§fn clone(&self) -> DocumentKey
fn clone(&self) -> DocumentKey
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 DocumentKey
impl Debug for DocumentKey
Source§impl Hash for DocumentKey
impl Hash for DocumentKey
Source§impl PartialEq for DocumentKey
impl PartialEq for DocumentKey
impl Eq for DocumentKey
impl StructuralPartialEq for DocumentKey
Auto Trait Implementations§
impl Freeze for DocumentKey
impl RefUnwindSafe for DocumentKey
impl Send for DocumentKey
impl Sync for DocumentKey
impl Unpin for DocumentKey
impl UnwindSafe for DocumentKey
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.