pub enum DocCommands {
List {
creator: Option<String>,
archived: bool,
},
Create {
name: String,
visibility: Option<String>,
parent_type: Option<String>,
parent_id: Option<String>,
},
Get {
id: String,
},
Pages {
id: String,
content: bool,
max_depth: Option<u32>,
},
AddPage {
doc_id: String,
name: String,
parent_page: Option<String>,
content: Option<String>,
},
Page {
doc_id: String,
page_id: String,
},
EditPage {
doc_id: String,
page_id: String,
content: String,
mode: String,
},
}Variants§
List
List docs in the workspace
Create
Create a doc
Fields
Get
Get a doc by ID
Pages
List pages in a doc
Fields
AddPage
Add a page to a doc
Fields
Page
Get a specific page from a doc
EditPage
Edit a doc page
Trait Implementations§
Source§impl FromArgMatches for DocCommands
impl FromArgMatches for DocCommands
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 DocCommands
impl Subcommand for DocCommands
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 DocCommands
impl RefUnwindSafe for DocCommands
impl Send for DocCommands
impl Sync for DocCommands
impl Unpin for DocCommands
impl UnsafeUnpin for DocCommands
impl UnwindSafe for DocCommands
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