pub struct IdentityCapabilities {
pub stable_item_ids: bool,
pub path_independent_item_ids: bool,
pub same_root_move_preserves_identity: bool,
pub cross_root_move_preserves_identity: bool,
}Expand description
Stable identity properties exposed by a backend/adapter boundary.
Fields§
§stable_item_ids: boolItem identifiers remain stable for the supported lifetime.
path_independent_item_ids: boolItem identifiers do not encode the current path or filename.
same_root_move_preserves_identity: boolRename and move within one root preserve item identity.
cross_root_move_preserves_identity: boolMove between roots can preserve item identity.
Implementations§
Source§impl IdentityCapabilities
impl IdentityCapabilities
Sourcepub const fn intersection(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
Computes capabilities guaranteed by both sides of an adapter boundary.
Sourcepub fn validate_core_requirements(self) -> Result<()>
pub fn validate_core_requirements(self) -> Result<()>
Validates the identity invariants required by the core model.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Trait Implementations§
Source§impl Clone for IdentityCapabilities
impl Clone for IdentityCapabilities
Source§fn clone(&self) -> IdentityCapabilities
fn clone(&self) -> IdentityCapabilities
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 IdentityCapabilities
impl Debug for IdentityCapabilities
Source§impl Default for IdentityCapabilities
impl Default for IdentityCapabilities
Source§fn default() -> IdentityCapabilities
fn default() -> IdentityCapabilities
Returns the “default value” for a type. Read more
Source§impl PartialEq for IdentityCapabilities
impl PartialEq for IdentityCapabilities
impl Copy for IdentityCapabilities
impl Eq for IdentityCapabilities
impl StructuralPartialEq for IdentityCapabilities
Auto Trait Implementations§
impl Freeze for IdentityCapabilities
impl RefUnwindSafe for IdentityCapabilities
impl Send for IdentityCapabilities
impl Sync for IdentityCapabilities
impl Unpin for IdentityCapabilities
impl UnwindSafe for IdentityCapabilities
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