pub struct WindowsSyncRootIdentity(/* private fields */);Expand description
Owned, versioned CFAPI sync-root identity for one exact Forge namespace/root scope.
Implementations§
Source§impl WindowsSyncRootIdentity
impl WindowsSyncRootIdentity
Sourcepub fn encode(scope: &CloudScope) -> Result<Self>
pub fn encode(scope: &CloudScope) -> Result<Self>
Encodes one product-neutral scope into the current Windows sync-root envelope.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Sourcepub fn from_bytes(bytes: Vec<u8>) -> Result<Self>
pub fn from_bytes(bytes: Vec<u8>) -> Result<Self>
Imports and validates a canonical sync-root identity envelope.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Sourcepub fn decode(&self) -> Result<CloudScope>
pub fn decode(&self) -> Result<CloudScope>
Decodes the product-neutral namespace/root scope.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Sourcepub fn into_bytes(self) -> Vec<u8> ⓘ
pub fn into_bytes(self) -> Vec<u8> ⓘ
Consumes the identity and returns its exact bytes.
Trait Implementations§
Source§impl Clone for WindowsSyncRootIdentity
impl Clone for WindowsSyncRootIdentity
Source§fn clone(&self) -> WindowsSyncRootIdentity
fn clone(&self) -> WindowsSyncRootIdentity
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 WindowsSyncRootIdentity
impl Debug for WindowsSyncRootIdentity
Source§impl Hash for WindowsSyncRootIdentity
impl Hash for WindowsSyncRootIdentity
Source§impl PartialEq for WindowsSyncRootIdentity
impl PartialEq for WindowsSyncRootIdentity
impl Eq for WindowsSyncRootIdentity
impl StructuralPartialEq for WindowsSyncRootIdentity
Auto Trait Implementations§
impl Freeze for WindowsSyncRootIdentity
impl RefUnwindSafe for WindowsSyncRootIdentity
impl Send for WindowsSyncRootIdentity
impl Sync for WindowsSyncRootIdentity
impl Unpin for WindowsSyncRootIdentity
impl UnwindSafe for WindowsSyncRootIdentity
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