pub struct EnterArgs {Show 14 fields
environment: Environment,
url: Option<Url>,
wait_for_card: bool,
chained_session_drip: bool,
confirm: bool,
card_comment: Option<String>,
hub_handle: Option<Handle>,
local_client: bool,
local_client_url: Url,
auth_token: Option<AuthToken>,
id_attr_type: HandleChoice,
add_attr_type: Vec<Handle>,
dont_add_attrs: bool,
register_only_with_unique_attrs: bool,
}Fields§
§environment: EnvironmentEnter this pubhubs environment
url: Option<Url>Contact PHC at this url, overriding –environment
wait_for_card: boolWhether to wait for a pubhubs yivi card
chained_session_drip: boolWhether to use ‘chained session drip’, AuthStartReq::yivi_chained_session_drip
confirm: boolAsk for confirmation before proceeding at certain points. Useful for letting something time out.
card_comment: Option<String>Comment to use on the pubhubs card, provided a card is requested
hub_handle: Option<Handle>Handle identifying the hub
local_client: boolInstead of the displaying the actual client url after entering a hub, display the local client url. Useful when running your local client against main.
local_client_url: UrlThe local client url used by –local-client.
auth_token: Option<AuthToken>Use this pubhubs authentication token
id_attr_type: HandleChoiceIdentifying attribute type to use
add_attr_type: Vec<Handle>Add these attributes when entering pubhubs
dont_add_attrs: boolDon’t add any attributes when entering pubhubs
register_only_with_unique_attrs: boolDon’t create a new account if one of the supplied attributes already bans another account
Implementations§
Source§impl EnterArgs
impl EnterArgs
pub fn run(self, _spec: &mut Command) -> Result<()>
fn url(&self) -> Cow<'_, Url>
async fn confirm(&self, msg: &str)
async fn run_async(self) -> Result<()>
Sourceasync fn get_auth_token(
&self,
client: &Client,
constellation: &Constellation,
attr_types: &HashMap<Handle, Type>,
) -> Result<AuthToken>
async fn get_auth_token( &self, client: &Client, constellation: &Constellation, attr_types: &HashMap<Handle, Type>, ) -> Result<AuthToken>
Enter pubhubs using a QR code on the command line; returns an auth token.
Trait Implementations§
Source§impl Args for EnterArgs
impl Args for EnterArgs
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
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for EnterArgs
impl FromArgMatches for EnterArgs
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>
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>
ArgMatches to self.Auto Trait Implementations§
impl Freeze for EnterArgs
impl RefUnwindSafe for EnterArgs
impl Send for EnterArgs
impl Sync for EnterArgs
impl Unpin for EnterArgs
impl UnsafeUnpin for EnterArgs
impl UnwindSafe for EnterArgs
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more