pub struct BuildCache {
pub enabled: bool,
pub max_size: ByteSize,
pub branches: Vec<String>,
pub directory: Option<PathBuf>,
}Expand description
[caches.build]: the build cache every runner shares (ADR 0052): Gradle’s, and the other tools’ the runner image
points at it. Every field has a default.
Fields§
§enabled: boolWhether runners get it. Default true.
max_size: ByteSizeAbove this size, the entries used least recently go when no job runs. Default 10G.
branches: Vec<String>The branches whose pushes, scheduled and manually started runs may write to it besides each repository’s default branch, which always may. Every other job only reads. Default empty.
directory: Option<PathBuf>Where its entries are kept; default $XDG_CACHE_HOME/runnerd/build-cache.
Trait Implementations§
Source§impl Clone for BuildCache
impl Clone for BuildCache
Source§impl Debug for BuildCache
impl Debug for BuildCache
Source§impl Default for BuildCache
impl Default for BuildCache
Source§fn default() -> BuildCache
fn default() -> BuildCache
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BuildCachewhere
BuildCache: Default,
impl<'de> Deserialize<'de> for BuildCachewhere
BuildCache: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BuildCache
Source§impl PartialEq for BuildCache
impl PartialEq for BuildCache
impl StructuralPartialEq for BuildCache
Auto Trait Implementations§
impl Freeze for BuildCache
impl RefUnwindSafe for BuildCache
impl Send for BuildCache
impl Sync for BuildCache
impl Unpin for BuildCache
impl UnsafeUnpin for BuildCache
impl UnwindSafe for BuildCache
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.