Enum mpot::args::ListCommand
source · pub enum ListCommand {
Show 15 variants
Subscriptions,
AddSubscription {
address: String,
subscription_options: SubscriptionOptions,
},
RemoveSubscription {
address: String,
},
UpdateSubscription {
address: String,
subscription_options: SubscriptionOptions,
},
AddPolicy {
announce_only: bool,
subscription_only: bool,
approval_needed: bool,
open: bool,
custom: bool,
},
RemovePolicy {
pk: i64,
},
AddSubscribePolicy {
send_confirmation: bool,
open: bool,
manual: bool,
request: bool,
custom: bool,
},
RemoveSubscribePolicy {
pk: i64,
},
AddListOwner {
address: String,
name: Option<String>,
},
RemoveListOwner {
pk: i64,
},
EnableSubscription {
address: String,
},
DisableSubscription {
address: String,
},
Update {
name: Option<String>,
id: Option<String>,
address: Option<String>,
description: Option<String>,
archive_url: Option<String>,
owner_local_part: Option<String>,
request_local_part: Option<String>,
verify: Option<bool>,
hidden: Option<bool>,
enabled: Option<bool>,
},
Health,
Info,
}
Variants§
Subscriptions
List subscriptions of list.
AddSubscription
Add subscription to list.
RemoveSubscription
Remove subscription from list.
UpdateSubscription
Update subscription info.
AddPolicy
Fields
Add a new post policy.
RemovePolicy
AddSubscribePolicy
Fields
Add subscription policy to list.
RemoveSubscribePolicy
AddListOwner
Add list owner to list.
RemoveListOwner
EnableSubscription
Alias for update-subscription –enabled true.
DisableSubscription
Alias for update-subscription –enabled false.
Update
Fields
§
request_local_part: Option<String>
New request address local part. If empty, it defaults to ‘+request’.
§
verify: Option<bool>
Require verification of e-mails for new subscriptions.
Subscriptions that are initiated from the subscription’s address are verified automatically.
Public visibility of list.
If hidden, the list will not show up in public APIs unless requests to it won’t work.
Update mailing list details.
Health
Show mailing list health status.
Info
Show mailing list info.
Trait Implementations§
source§impl Debug for ListCommand
impl Debug for ListCommand
source§impl FromArgMatches for ListCommand
impl FromArgMatches for ListCommand
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 ListCommand
impl Subcommand for ListCommand
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
source§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self
can parse a specific subcommand