pub struct SetPin {
pub employee_party_id: Uuid,
pub new_pin: String,
pub current: Option<ManagerAuth>,
pub admin: bool,
pub source_ip: Option<String>,
}Expand description
A set_pin request: the manager getting a credential + the new PIN + the proof of authority.
Fields§
§employee_party_id: Uuid§new_pin: StringDigits only; length must fall inside the policy window.
current: Option<ManagerAuth>Proof of authority to set: the SAME manager’s current PIN (self-change) or ANOTHER
manager’s verified PIN (supervised change). None is accepted only from a credential
administrator (admin).
admin: boolThe composing service vouches that the caller administers credentials: it may set a PIN without a manager’s proof — the first PIN of a unit, or a reset.
source_ip: Option<String>Who is attempting, for the throttle ring and the attempt trail: the authenticated caller.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SetPin
impl RefUnwindSafe for SetPin
impl Send for SetPin
impl Sync for SetPin
impl Unpin for SetPin
impl UnsafeUnpin for SetPin
impl UnwindSafe for SetPin
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