pub struct StewardCheck {
pub now: u64,
pub max_age_secs: u64,
pub skew_secs: u64,
pub confirmed_fingerprint: String,
pub steward_node_id: String,
pub steward_pubkey: String,
pub held_seq: Option<u64>,
pub seed_identity: Option<(String, String)>,
}Expand description
Inputs of the steward checks.
Fields§
§now: u64Now, unix seconds.
max_age_secs: u64Oldest bound_at accepted, in seconds before now (600).
skew_secs: u64Newest bound_at accepted, in seconds after now.
confirmed_fingerprint: StringThe grant key fingerprint (ed25519: plus 16 hex) the operator
compared at weft-licence init time.
steward_node_id: StringThis node’s id: the steward the record must name.
steward_pubkey: StringThis node’s request-signing key, 64 hex chars.
held_seq: Option<u64>The seq of the binding held now, if any.
seed_identity: Option<(String, String)>The Seed’s live (device_id, public_key). None skips the identity
match (the pre-check that runs before the Seed is contacted).
Trait Implementations§
Source§impl BindingExtraCheck for StewardCheck
impl BindingExtraCheck for StewardCheck
Source§fn check(&self, r: &BindingRecord) -> Result<(), LicenceError>
fn check(&self, r: &BindingRecord) -> Result<(), LicenceError>
Refuse the record with
LicenceError::CheckFailed.Source§impl Clone for StewardCheck
impl Clone for StewardCheck
Auto Trait Implementations§
impl Freeze for StewardCheck
impl RefUnwindSafe for StewardCheck
impl Send for StewardCheck
impl Sync for StewardCheck
impl Unpin for StewardCheck
impl UnsafeUnpin for StewardCheck
impl UnwindSafe for StewardCheck
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
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