pub enum MyceliumAction {
Root {
domain: Option<String>,
hub: Option<String>,
site_path: Option<String>,
name: Option<String>,
synopsis: Option<String>,
bio: Option<String>,
endpoints_base: Option<String>,
},
Status {
domain: Option<String>,
site_path: Option<String>,
id: Option<String>,
},
Serve {
domain: Option<String>,
site_path: Option<String>,
port: u16,
},
Nutrient {
command: NutrientCommands,
},
Pulse {
synapse: Option<String>,
synapse_token_secret: Option<String>,
file: String,
},
}Variants§
Root
Establish a new site for a domain (or update existing)
Fields
Status
Show site status
Fields
Serve
Start a local HTTP server to serve the site (for debugging)
Fields
Nutrient
Manage nutrient methods (add/remove/clear)
Fields
§
command: NutrientCommandsPulse
Send a pulse to a synapse indexer
Trait Implementations§
Source§impl FromArgMatches for MyceliumAction
impl FromArgMatches for MyceliumAction
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 Serialize for MyceliumAction
impl Serialize for MyceliumAction
Source§impl Subcommand for MyceliumAction
impl Subcommand for MyceliumAction
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 MyceliumAction
impl RefUnwindSafe for MyceliumAction
impl Send for MyceliumAction
impl Sync for MyceliumAction
impl Unpin for MyceliumAction
impl UnsafeUnpin for MyceliumAction
impl UnwindSafe for MyceliumAction
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