pub struct CloudItemKey { /* private fields */ }Expand description
Fully scoped identity for one cloud item.
Paths, names, local inodes, CFAPI identity blobs, and File Provider identifiers are adapter state and are deliberately absent from this key.
Implementations§
Source§impl CloudItemKey
impl CloudItemKey
Sourcepub const fn new(scope: CloudScope, item_id: CloudItemId) -> Self
pub const fn new(scope: CloudScope, item_id: CloudItemId) -> Self
Creates a fully scoped item key.
Sourcepub const fn scope(&self) -> &CloudScope
pub const fn scope(&self) -> &CloudScope
Returns the namespace/root scope.
Sourcepub const fn item_id(&self) -> &CloudItemId
pub const fn item_id(&self) -> &CloudItemId
Returns the stable path-independent item identity.
Sourcepub fn into_parts(self) -> (CloudScope, CloudItemId)
pub fn into_parts(self) -> (CloudScope, CloudItemId)
Consumes the key and returns its scope and item identity.
Trait Implementations§
Source§impl Clone for CloudItemKey
impl Clone for CloudItemKey
Source§fn clone(&self) -> CloudItemKey
fn clone(&self) -> CloudItemKey
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 CloudItemKey
impl Debug for CloudItemKey
Source§impl Hash for CloudItemKey
impl Hash for CloudItemKey
Source§impl PartialEq for CloudItemKey
impl PartialEq for CloudItemKey
impl Eq for CloudItemKey
impl StructuralPartialEq for CloudItemKey
Auto Trait Implementations§
impl Freeze for CloudItemKey
impl RefUnwindSafe for CloudItemKey
impl Send for CloudItemKey
impl Sync for CloudItemKey
impl Unpin for CloudItemKey
impl UnwindSafe for CloudItemKey
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