pub struct SiteUpdateArgs {
pub site: String,
pub timezone: Option<String>,
pub public: Option<bool>,
pub main_site: Option<bool>,
}Fields§
§site: StringSite domain or site_id to update.
timezone: Option<String>Update the timezone.
public: Option<bool>Update the public flag (true/false).
main_site: Option<bool>Toggle whether this is the main site (true/false).
Trait Implementations§
Source§impl Args for SiteUpdateArgs
impl Args for SiteUpdateArgs
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
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for SiteUpdateArgs
impl Clone for SiteUpdateArgs
Source§fn clone(&self) -> SiteUpdateArgs
fn clone(&self) -> SiteUpdateArgs
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SiteUpdateArgs
impl Debug for SiteUpdateArgs
Source§impl Default for SiteUpdateArgs
impl Default for SiteUpdateArgs
Source§fn default() -> SiteUpdateArgs
fn default() -> SiteUpdateArgs
Returns the “default value” for a type. Read more
Source§impl FromArgMatches for SiteUpdateArgs
impl FromArgMatches for SiteUpdateArgs
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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for SiteUpdateArgs
impl RefUnwindSafe for SiteUpdateArgs
impl Send for SiteUpdateArgs
impl Sync for SiteUpdateArgs
impl Unpin for SiteUpdateArgs
impl UnwindSafe for SiteUpdateArgs
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