pub enum DlPolicyCmd {
Set {
doc: Option<NamespaceId>,
kind: FetchKind,
except: Vec<FilterKind>,
},
Get {
doc: Option<NamespaceId>,
},
}
Available on crate feature
cli
only.Expand description
Subcommands for the download policy command.
Variants§
Set
Fields
§
doc: Option<NamespaceId>
Document to operate on.
Required unless the document is set through the IROH_DOC environment variable.
Within the Iroh console, the active document can also set with doc switch
.
§
except: Vec<FilterKind>
Add an exception to the download policy.
An exception must be formatted as <matching_kind>:<encoding>:<pattern>
.
-
<matching_kind> can be either
prefix
orexact
. -
<encoding>
can be eitherutf8
orhex
.
Get
Fields
§
doc: Option<NamespaceId>
Document to operate on.
Required unless the document is set through the IROH_DOC environment variable.
Within the Iroh console, the active document can also set with doc switch
.
Trait Implementations§
Source§impl Clone for DlPolicyCmd
impl Clone for DlPolicyCmd
Source§fn clone(&self) -> DlPolicyCmd
fn clone(&self) -> DlPolicyCmd
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 DlPolicyCmd
impl Debug for DlPolicyCmd
Source§impl FromArgMatches for DlPolicyCmd
impl FromArgMatches for DlPolicyCmd
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<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Source§impl Subcommand for DlPolicyCmd
impl Subcommand for DlPolicyCmd
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to [
Command
] so it can instantiate self
via
[FromArgMatches::update_from_arg_matches_mut
] Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self
can parse a specific subcommandAuto Trait Implementations§
impl Freeze for DlPolicyCmd
impl RefUnwindSafe for DlPolicyCmd
impl Send for DlPolicyCmd
impl Sync for DlPolicyCmd
impl Unpin for DlPolicyCmd
impl UnwindSafe for DlPolicyCmd
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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