Struct firestore_path::CollectionPath
source · pub struct CollectionPath { /* private fields */ }
Expand description
format:
{collection_id}
{document_path}/{collection_id}
Implementations§
source§impl CollectionPath
impl CollectionPath
pub fn new(parent: Option<DocumentPath>, collection_id: CollectionId) -> Self
pub fn collection_id(&self) -> &CollectionId
pub fn doc<E, T>(self, document_id: T) -> Result<DocumentPath, Error>
pub fn parent(&self) -> Option<&DocumentPath>
Trait Implementations§
source§impl Clone for CollectionPath
impl Clone for CollectionPath
source§fn clone(&self) -> CollectionPath
fn clone(&self) -> CollectionPath
Returns a copy 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 CollectionPath
impl Debug for CollectionPath
source§impl Display for CollectionPath
impl Display for CollectionPath
source§impl From<CollectionPath> for CollectionId
impl From<CollectionPath> for CollectionId
source§fn from(collection_path: CollectionPath) -> Self
fn from(collection_path: CollectionPath) -> Self
Converts to this type from the input type.
source§impl From<CollectionPath> for Option<DocumentPath>
impl From<CollectionPath> for Option<DocumentPath>
source§fn from(collection_path: CollectionPath) -> Self
fn from(collection_path: CollectionPath) -> Self
Converts to this type from the input type.
source§impl From<DocumentPath> for CollectionPath
impl From<DocumentPath> for CollectionPath
source§fn from(document_path: DocumentPath) -> Self
fn from(document_path: DocumentPath) -> Self
Converts to this type from the input type.
source§impl FromStr for CollectionPath
impl FromStr for CollectionPath
source§impl Hash for CollectionPath
impl Hash for CollectionPath
source§impl Ord for CollectionPath
impl Ord for CollectionPath
source§fn cmp(&self, other: &CollectionPath) -> Ordering
fn cmp(&self, other: &CollectionPath) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for CollectionPath
impl PartialEq for CollectionPath
source§fn eq(&self, other: &CollectionPath) -> bool
fn eq(&self, other: &CollectionPath) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CollectionPath
impl PartialOrd for CollectionPath
source§fn partial_cmp(&self, other: &CollectionPath) -> Option<Ordering>
fn partial_cmp(&self, other: &CollectionPath) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<&str> for CollectionPath
impl TryFrom<&str> for CollectionPath
source§impl TryFrom<String> for CollectionPath
impl TryFrom<String> for CollectionPath
impl Eq for CollectionPath
impl StructuralEq for CollectionPath
impl StructuralPartialEq for CollectionPath
Auto Trait Implementations§
impl RefUnwindSafe for CollectionPath
impl Send for CollectionPath
impl Sync for CollectionPath
impl Unpin for CollectionPath
impl UnwindSafe for CollectionPath
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