pub struct Cache {
pub max_cache_retention_days: NonZeroU32,
pub max_cache_size_gb: NonZeroU32,
}Expand description
The limits of the Actions cache.
Fields§
§max_cache_retention_days: NonZeroU32The number of days a cache entry is kept.
max_cache_size_gb: NonZeroU32The cache size limit in gigabytes.
Implementations§
Source§impl Cache
impl Cache
pub(crate) const fn from_responses( retention: CacheRetentionResponse, storage: CacheStorageResponse, ) -> Self
Trait Implementations§
impl Copy for Cache
impl Eq for Cache
Source§impl GroupType for Cache
impl GroupType for Cache
Source§fn compare(&self, live: &Self, diff: &mut FieldDiff)
fn compare(&self, live: &Self, diff: &mut FieldDiff)
Compare the declared group with the live one.
Source§fn limitation() -> Limitation
fn limitation() -> Limitation
What the report says when the live group cannot be read.
impl StructuralPartialEq for Cache
Auto Trait Implementations§
impl Freeze for Cache
impl RefUnwindSafe for Cache
impl Send for Cache
impl Sync for Cache
impl Unpin for Cache
impl UnsafeUnpin for Cache
impl UnwindSafe for Cache
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.