pub struct MintArgs {
pub scope: TokenScopeArg,
pub token: Option<String>,
pub token_file: Option<PathBuf>,
pub working_dir: Option<PathBuf>,
pub out: Option<PathBuf>,
pub json: bool,
}Expand description
astrs token mint arguments, independent of clap.
Fields§
§scope: TokenScopeArgThe scope to mint a credential for.
token: Option<String>An explicit root token, instead of resolving one.
token_file: Option<PathBuf>A file holding the root token.
working_dir: Option<PathBuf>Where .astrs-token is looked up when neither of the above is
given.
out: Option<PathBuf>Write the minted credential to this file (mode 0600) instead of
printing it to stdout.
json: boolEmit JSON rather than a bare hex line.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MintArgs
impl RefUnwindSafe for MintArgs
impl Send for MintArgs
impl Sync for MintArgs
impl Unpin for MintArgs
impl UnsafeUnpin for MintArgs
impl UnwindSafe for MintArgs
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
Converts
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> ⓘ
Converts
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