pub struct KeyStateCommand {
pub from_kel: Option<PathBuf>,
pub ingest: Option<PathBuf>,
pub reject_stale_below: Option<String>,
pub dt: String,
}Expand description
Emit or ingest a KERI-conformant key-state notice (ksn).
Fields§
§from_kel: Option<PathBuf>Replay this KEL file and emit its current key-state as a KERI ksn record
(the shape a keripy/keriox peer can read).
ingest: Option<PathBuf>Ingest a KERI ksn record from this file (the shape a keripy/keriox peer
publishes) and print the resolved key-state.
reject_stale_below: Option<String>Reject an ingested notice whose sequence is below this (lowercase-hex)
value — a verifier already holding a newer state refuses a stale or
replayed view. Fails closed with a distinct reason; only valid with
--ingest.
dt: StringTimestamp (RFC 3339) to stamp an emitted notice with. Defaults to the
epoch so emission stays deterministic; pass the real now to publish.
Implementations§
Trait Implementations§
Source§impl Args for KeyStateCommand
impl Args for KeyStateCommand
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 KeyStateCommand
impl Clone for KeyStateCommand
Source§fn clone(&self) -> KeyStateCommand
fn clone(&self) -> KeyStateCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CommandFactory for KeyStateCommand
impl CommandFactory for KeyStateCommand
Source§impl Debug for KeyStateCommand
impl Debug for KeyStateCommand
Source§impl FromArgMatches for KeyStateCommand
impl FromArgMatches for KeyStateCommand
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.Source§impl Parser for KeyStateCommand
impl Parser for KeyStateCommand
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for KeyStateCommand
impl RefUnwindSafe for KeyStateCommand
impl Send for KeyStateCommand
impl Sync for KeyStateCommand
impl Unpin for KeyStateCommand
impl UnsafeUnpin for KeyStateCommand
impl UnwindSafe for KeyStateCommand
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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