pub struct BranchMetadata {
pub parent_version: u64,
pub branch_name: String,
}Expand description
Metadata returned by Storage::fork describing the newly-created branch.
parent_version is the backend version pinned as the fork-point, so
callers orchestrating nested forks can chain create_branch_from-style
calls without re-querying the backend. branch_name echoes the
dst_branch argument, surfaced explicitly so backends with name
canonicalization can return the resolved form.
Fields§
§parent_version: u64Backend version pinned as the new branch’s fork-point.
branch_name: StringBranch identifier as registered on the backend.
Trait Implementations§
Source§impl Clone for BranchMetadata
impl Clone for BranchMetadata
Source§fn clone(&self) -> BranchMetadata
fn clone(&self) -> BranchMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BranchMetadata
impl RefUnwindSafe for BranchMetadata
impl Send for BranchMetadata
impl Sync for BranchMetadata
impl Unpin for BranchMetadata
impl UnsafeUnpin for BranchMetadata
impl UnwindSafe for BranchMetadata
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more