pub enum AttachmentCommand {
Export(ExportArgs),
List(ListArgs),
Get(GetArgs),
Upload(UploadArgs),
Download(DownloadArgs),
Copy(TransferArgs),
Move(TransferArgs),
Delete(DeleteArgs),
ListDeleted(DeletedArgs),
Restore(RestoreArgs),
UploadBackground(BackgroundArgs),
DownloadBackground(BackgroundArgs),
}Variants§
Export(ExportArgs)
Export a native artifact to a file or validated raw stdout.
List(ListArgs)
List attachments. Wekan v12.57 ignores deeper selectors and returns all board attachments.
Get(GetArgs)
Read attachment metadata and versions.
Upload(UploadArgs)
Upload a file or stdin (-) using JSON or native raw bytes.
Download(DownloadArgs)
Download an attachment to a file or raw stdout (-).
Copy(TransferArgs)
Copy an attachment to a card. Pinned Wekan JSON copies return HTTP 408.
Move(TransferArgs)
Move an attachment to a card. Pinned Wekan JSON moves return HTTP 408.
Delete(DeleteArgs)
Soft-delete an attachment; requires confirmation or –yes.
ListDeleted(DeletedArgs)
List recoverable deleted attachments on a board.
Restore(RestoreArgs)
Restore a deleted attachment; its previous cover selection stays unset.
UploadBackground(BackgroundArgs)
Upload and select a board background using JSON or native raw bytes.
DownloadBackground(BackgroundArgs)
Download the current board background to a file or raw stdout (-).
Trait Implementations§
Source§impl Debug for AttachmentCommand
impl Debug for AttachmentCommand
Source§impl FromArgMatches for AttachmentCommand
impl FromArgMatches for AttachmentCommand
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 AttachmentCommand
impl Subcommand for AttachmentCommand
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 AttachmentCommand
impl RefUnwindSafe for AttachmentCommand
impl Send for AttachmentCommand
impl Sync for AttachmentCommand
impl Unpin for AttachmentCommand
impl UnsafeUnpin for AttachmentCommand
impl UnwindSafe for AttachmentCommand
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