[][src]Struct buildkit_proto::pb::CacheOpt

pub struct CacheOpt {
    pub id: String,
    pub sharing: i32,
}

CacheOpt defines options specific to cache mounts

Fields

id: String

ID is an optional namespace for the mount

sharing: i32

Sharing is the sharing mode for the mount

Methods

impl CacheOpt[src]

pub fn sharing(&self) -> CacheSharingOpt[src]

pub fn set_sharing(&mut self, value: CacheSharingOpt)[src]

Trait Implementations

impl Default for CacheOpt[src]

impl Clone for CacheOpt[src]

impl PartialEq<CacheOpt> for CacheOpt[src]

impl Debug for CacheOpt[src]

impl Message for CacheOpt[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]