pub struct CachePatch {
pub id: Option<Option<String>>,
pub target: Option<String>,
pub readonly: Option<Option<bool>>,
pub sharing: Option<Option<CacheSharing>>,
pub from: Option<FromContextPatch>,
pub source: Option<Option<String>>,
pub chmod: Option<Option<String>>,
pub chown: Option<Option<UserPatch>>,
}
Fields§
§id: Option<Option<String>>
§target: Option<String>
§readonly: Option<Option<bool>>
§sharing: Option<Option<CacheSharing>>
§from: Option<FromContextPatch>
§source: Option<Option<String>>
§chmod: Option<Option<String>>
§chown: Option<Option<UserPatch>>
Trait Implementations§
Source§impl Clone for CachePatch
impl Clone for CachePatch
Source§fn clone(&self) -> CachePatch
fn clone(&self) -> CachePatch
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CachePatch
impl Debug for CachePatch
Source§impl Default for CachePatch
impl Default for CachePatch
Source§fn default() -> CachePatch
fn default() -> CachePatch
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CachePatchwhere
CachePatch: Default,
impl<'de> Deserialize<'de> for CachePatchwhere
CachePatch: 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
Source§impl From<CachePatch> for Cache
impl From<CachePatch> for Cache
Source§fn from(value: CachePatch) -> Self
fn from(value: CachePatch) -> Self
Converts to this type from the input type.
Source§impl FromStr for CachePatch
impl FromStr for CachePatch
Source§impl PartialEq for CachePatch
impl PartialEq for CachePatch
Source§impl Patch<CachePatch> for Cache
impl Patch<CachePatch> for Cache
Source§fn apply(&mut self, patch: CachePatch)
fn apply(&mut self, patch: CachePatch)
Apply a patch
Source§fn into_patch(self) -> CachePatch
fn into_patch(self) -> CachePatch
Returns a patch that when applied turns any struct of the same type into
Self
Source§fn into_patch_by_diff(self, previous_struct: Self) -> CachePatch
fn into_patch_by_diff(self, previous_struct: Self) -> CachePatch
Returns a patch that when applied turns
previous_struct
into Self
Source§fn new_empty_patch() -> CachePatch
fn new_empty_patch() -> CachePatch
Get an empty patch instance
impl StructuralPartialEq for CachePatch
Auto Trait Implementations§
impl Freeze for CachePatch
impl RefUnwindSafe for CachePatch
impl Send for CachePatch
impl Sync for CachePatch
impl Unpin for CachePatch
impl UnwindSafe for CachePatch
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