pub struct ExportArgs {
pub output: Option<PathBuf>,
pub gzip: bool,
pub tables: Option<Vec<String>>,
pub no_history: bool,
pub exclude_deleted: bool,
pub compress_threshold: Option<String>,
}Expand description
Arguments for the export subcommand
Fields§
§output: Option<PathBuf>Output file path (default: stdout)
gzip: boolForce gzip compression (auto-detected from .gz extension otherwise)
tables: Option<Vec<String>>Comma-separated list of tables to export
Available tables: tasks, dependencies, attachments, task_tags, task_needed_tags, task_wanted_tags, task_sequence
no_history: boolExclude task_sequence table (audit history)
exclude_deleted: boolFilter out soft-deleted tasks (where deleted_at is set)
compress_threshold: Option<String>Automatically compress if output exceeds this size
Accepts human-readable sizes: 100KB, 1MB, etc. If the uncompressed output exceeds this threshold, the output will be gzip compressed (and .gz appended to filename if needed).
Implementations§
Source§impl ExportArgs
impl ExportArgs
Sourcepub fn tables_to_export(&self) -> Option<Vec<String>>
pub fn tables_to_export(&self) -> Option<Vec<String>>
Get the list of tables to export, or None for all tables
Sourcepub fn compress_threshold_bytes(&self) -> Option<u64>
pub fn compress_threshold_bytes(&self) -> Option<u64>
Parse the compress threshold into bytes
Sourcepub fn should_compress(&self, output_size: Option<u64>) -> bool
pub fn should_compress(&self, output_size: Option<u64>) -> bool
Determine if output should be compressed based on args and filename
Trait Implementations§
Source§impl Args for ExportArgs
impl Args for ExportArgs
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
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Debug for ExportArgs
impl Debug for ExportArgs
Source§impl FromArgMatches for ExportArgs
impl FromArgMatches for ExportArgs
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.Auto Trait Implementations§
impl Freeze for ExportArgs
impl RefUnwindSafe for ExportArgs
impl Send for ExportArgs
impl Sync for ExportArgs
impl Unpin for ExportArgs
impl UnwindSafe for ExportArgs
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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 more