#[non_exhaustive]pub struct CachePrePopulate {
pub path_list: Vec<String>,
pub exclude_path_list: Vec<String>,
pub recursion: Option<bool>,
/* private fields */
}Expand description
Pre-populate cache volume with data from the origin volume.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.path_list: Vec<String>Optional. List of directory-paths to be pre-populated for the FlexCache volume.
exclude_path_list: Vec<String>Optional. List of directory-paths to be excluded for pre-population for the FlexCache volume.
recursion: Option<bool>Optional. Flag indicating whether the directories listed with the
path_list need to be recursively pre-populated.
Implementations§
Source§impl CachePrePopulate
impl CachePrePopulate
pub fn new() -> Self
Sourcepub fn set_path_list<T, V>(self, v: T) -> Self
pub fn set_path_list<T, V>(self, v: T) -> Self
Sourcepub fn set_exclude_path_list<T, V>(self, v: T) -> Self
pub fn set_exclude_path_list<T, V>(self, v: T) -> Self
Sets the value of exclude_path_list.
§Example
ⓘ
let x = CachePrePopulate::new().set_exclude_path_list(["a", "b", "c"]);Sourcepub fn set_recursion<T>(self, v: T) -> Self
pub fn set_recursion<T>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for CachePrePopulate
impl Clone for CachePrePopulate
Source§fn clone(&self) -> CachePrePopulate
fn clone(&self) -> CachePrePopulate
Returns a duplicate 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 CachePrePopulate
impl Debug for CachePrePopulate
Source§impl Default for CachePrePopulate
impl Default for CachePrePopulate
Source§fn default() -> CachePrePopulate
fn default() -> CachePrePopulate
Returns the “default value” for a type. Read more
Source§impl Message for CachePrePopulate
impl Message for CachePrePopulate
Source§impl PartialEq for CachePrePopulate
impl PartialEq for CachePrePopulate
impl StructuralPartialEq for CachePrePopulate
Auto Trait Implementations§
impl Freeze for CachePrePopulate
impl RefUnwindSafe for CachePrePopulate
impl Send for CachePrePopulate
impl Sync for CachePrePopulate
impl Unpin for CachePrePopulate
impl UnsafeUnpin for CachePrePopulate
impl UnwindSafe for CachePrePopulate
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