pub struct Commit {
pub bytes: Vec<u8>,
pub write: bool,
pub disk: Option<Option<[u8; 32]>>,
pub doc: Option<Arc<GoValue>>,
}Expand description
How CredentialStore::commit_file_backed commits a management save.
Fields§
§bytes: Vec<u8>The bytes the file holds after the save (and the re-synthesized next read).
write: boolfalse when the file already holds an equal document: nothing is written, but
the credential is published from bytes all the same (Go’s store skips the
write, its manager still publishes the auth).
disk: Option<Option<[u8; 32]>>What the file must still hold under the write lock, else Stale: Some(None)
for no file, Some(Some(hash)) for those bytes; None skips the check.
doc: Option<Arc<GoValue>>Go’s metadata after the save, recorded as the new revision’s Provenance.
Auto Trait Implementations§
impl Forget for Commit
impl Freeze for Commit
impl Move for Commit
impl RefUnwindSafe for Commit
impl Send for Commit
impl Sync for Commit
impl Unpin for Commit
impl UnsafeUnpin for Commit
impl UnwindSafe for Commit
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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