pub enum BranchID {
Nested(ID),
Root(Arc<str>),
}
Expand description
An unique logical identifier of a shared collection. Can be shared across document boundaries to reference to the same logical entity across different replicas of a document.
Variants§
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for BranchID
impl<'de> Deserialize<'de> for BranchID
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for BranchID
impl Ord for BranchID
source§impl PartialEq for BranchID
impl PartialEq for BranchID
source§impl PartialOrd for BranchID
impl PartialOrd for BranchID
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 moreimpl Eq for BranchID
impl StructuralPartialEq for BranchID
Auto Trait Implementations§
impl Freeze for BranchID
impl RefUnwindSafe for BranchID
impl Send for BranchID
impl Sync for BranchID
impl Unpin for BranchID
impl UnwindSafe for BranchID
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