#[non_exhaustive]pub struct RepositoryOptions {
pub no_cache: bool,
pub cache_dir: Option<PathBuf>,
pub warm_up: bool,
pub warm_up_command: Option<CommandInput>,
pub warm_up_wait_command: Option<CommandInput>,
pub warm_up_wait: Option<SignedDuration>,
pub warm_up_batch: Option<usize>,
}Expand description
Options for using and opening a Repository
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.no_cache: boolDon’t use a cache.
cache_dir: Option<PathBuf>Use this dir as cache dir instead of the standard cache dir
warm_up: boolWarm up needed data pack files by only requesting them without processing
warm_up_command: Option<CommandInput>Warm up needed data pack files by running the command with %id replaced by pack id
warm_up_wait_command: Option<CommandInput>Wait for end of warm up by running the command with %id replaced by pack id
warm_up_wait: Option<SignedDuration>Duration (e.g. 10m) to wait after warm up
warm_up_batch: Option<usize>Batch size for warm-up command invocations
Implementations§
Source§impl RepositoryOptions
impl RepositoryOptions
Sourcepub fn cache_dir(self, value: impl Into<PathBuf>) -> Self
pub fn cache_dir(self, value: impl Into<PathBuf>) -> Self
Sets the cache_dir field of this struct.
Sourcepub fn warm_up_command(self, value: impl Into<CommandInput>) -> Self
pub fn warm_up_command(self, value: impl Into<CommandInput>) -> Self
Sets the warm_up_command field of this struct.
Sourcepub fn warm_up_wait_command(self, value: impl Into<CommandInput>) -> Self
pub fn warm_up_wait_command(self, value: impl Into<CommandInput>) -> Self
Sets the warm_up_wait_command field of this struct.
Sourcepub fn warm_up_wait(self, value: impl Into<SignedDuration>) -> Self
pub fn warm_up_wait(self, value: impl Into<SignedDuration>) -> Self
Sets the warm_up_wait field of this struct.
Sourcepub fn warm_up_batch(self, value: impl Into<usize>) -> Self
pub fn warm_up_batch(self, value: impl Into<usize>) -> Self
Sets the warm_up_batch field of this struct.
Trait Implementations§
Source§impl Args for RepositoryOptions
impl Args for RepositoryOptions
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for RepositoryOptions
impl Clone for RepositoryOptions
Source§fn clone(&self) -> RepositoryOptions
fn clone(&self) -> RepositoryOptions
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 CommandFactory for RepositoryOptions
impl CommandFactory for RepositoryOptions
Source§impl Debug for RepositoryOptions
impl Debug for RepositoryOptions
Source§impl Default for RepositoryOptions
impl Default for RepositoryOptions
Source§fn default() -> RepositoryOptions
fn default() -> RepositoryOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RepositoryOptionswhere
RepositoryOptions: Default,
impl<'de> Deserialize<'de> for RepositoryOptionswhere
RepositoryOptions: 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 FromArgMatches for RepositoryOptions
impl FromArgMatches for RepositoryOptions
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Merge for RepositoryOptions
impl Merge for RepositoryOptions
Source§impl Parser for RepositoryOptions
impl Parser for RepositoryOptions
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for RepositoryOptions
impl RefUnwindSafe for RepositoryOptions
impl Send for RepositoryOptions
impl Sync for RepositoryOptions
impl Unpin for RepositoryOptions
impl UnsafeUnpin for RepositoryOptions
impl UnwindSafe for RepositoryOptions
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MergeFrom for Twhere
T: Merge,
impl<T> MergeFrom for Twhere
T: Merge,
Source§fn merge_from(self, other: Self) -> Selfwhere
Self: Sized,
fn merge_from(self, other: Self) -> Selfwhere
Self: Sized,
Merges two instances of a type into a new instance. Read more