pub struct ResolvedReceipts {
pub max_file_bytes: u64,
pub retained_files: u32,
}Expand description
Resolved download-receipt audit-log retention fields (#802).
max_file_bytes is always within [MIN_RECEIPT_MAX_FILE_BYTES, MAX_RECEIPT_MAX_FILE_BYTES] and retained_files within
[0, MAX_RECEIPT_RETAINED_FILES] (the resolver rejects out-of-range
values), so the runtime can bound disk to roughly (retained_files + 1) * max_file_bytes.
Fields§
§max_file_bytes: u64Rotate the live receipt log once it reaches this many bytes.
retained_files: u32Number of rotated backup files retained (.1..=.N). 0 keeps none.
Trait Implementations§
Source§impl Clone for ResolvedReceipts
impl Clone for ResolvedReceipts
impl Copy for ResolvedReceipts
Source§impl Debug for ResolvedReceipts
impl Debug for ResolvedReceipts
Auto Trait Implementations§
impl Freeze for ResolvedReceipts
impl RefUnwindSafe for ResolvedReceipts
impl Send for ResolvedReceipts
impl Sync for ResolvedReceipts
impl Unpin for ResolvedReceipts
impl UnsafeUnpin for ResolvedReceipts
impl UnwindSafe for ResolvedReceipts
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
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