Struct iroh_blobs::cli::BlobAddOptions
source · pub struct BlobAddOptions {
pub in_place: bool,
pub tag: Option<String>,
pub wrap: bool,
pub filename: Option<String>,
pub no_ticket: bool,
}
cli
only.Expand description
Options for the blob add
command.
Fields§
§in_place: bool
Add in place
Set this to true only if you are sure that the data in its current location will not change.
tag: Option<String>
Tag to tag the data with.
wrap: bool
Wrap the added file or directory in a collection.
When adding a single file, without wrap
the file is added as a single blob and no
collection is created. When enabling wrap
it also creates a collection with a
single entry, where the entry’s name is the filename and the entry’s content is blob.
When adding a directory, a collection is always created.
Without wrap
, the collection directly contains the entries from the added directory.
With wrap
, the directory will be nested so that all names in the collection are
prefixed with the directory name, thus preserving the name of the directory.
When adding content from STDIN and setting wrap
you also need to set filename
to name
the entry pointing to the content from STDIN.
filename: Option<String>
Override the filename used for the entry in the created collection.
Only supported wrap
is set.
Required when adding content from STDIN and setting wrap
.
no_ticket: bool
Do not print the all-in-one ticket to get the added data from this node.
Trait Implementations§
source§impl Args for BlobAddOptions
impl Args for BlobAddOptions
source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
ArgGroup::id
][crate::ArgGroup::id] for this set of argumentssource§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
Command
] so it can instantiate self
via
[FromArgMatches::update_from_arg_matches_mut
] Read moresource§impl Clone for BlobAddOptions
impl Clone for BlobAddOptions
source§fn clone(&self) -> BlobAddOptions
fn clone(&self) -> BlobAddOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BlobAddOptions
impl Debug for BlobAddOptions
source§impl FromArgMatches for BlobAddOptions
impl FromArgMatches for BlobAddOptions
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>
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>
ArgMatches
to self
.