pub struct BackupInput {
pub assets: Vec<BackupAsset>,
pub amks: BTreeMap<(Uuid, u32), [u8; 32]>,
pub authorities: BTreeMap<Uuid, SignedEpochLedger>,
pub docs: Vec<BackupDoc>,
pub attestation_key_pins: Vec<u8>,
pub exporter_device: Uuid,
pub source_library_version: String,
pub export_timestamp: String,
}Expand description
Everything needed to assemble an artifact.
Fields§
§assets: Vec<BackupAsset>The assets to include.
amks: BTreeMap<(Uuid, u32), [u8; 32]>The AMK bytes for every (album_id, amk_version) an asset references.
Each album’s public authority: the admin-signed epoch ledger its manifests’ write signatures verify under. Only albums an included asset belongs to are written; an album with no entry here (e.g. one itself recovered from a format-1 artifact) exports without one, and restores readable but unverifiable.
docs: Vec<BackupDoc>Sealed album and stack label records. Each one’s (album_id, amk_version) AMK must be
in amks; the ledger escrows it.
attestation_key_pins: Vec<u8>The library’s pinned attestation-key history (.library/attestation-keys.cbor bytes;
empty = none). It rides the artifact verbatim so a restored library keeps checking
receipts under the keys it pinned, instead of trusting whatever a server publishes first
after the restore.
exporter_device: UuidThe exporting device id.
source_library_version: StringSource library version string.
export_timestamp: StringRFC3339 export timestamp.
Auto Trait Implementations§
impl !RefUnwindSafe for BackupInput
impl !UnwindSafe for BackupInput
impl Freeze for BackupInput
impl Send for BackupInput
impl Sync for BackupInput
impl Unpin for BackupInput
impl UnsafeUnpin for BackupInput
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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