pub struct VerifiedJob {
attempt_id: Uuid,
job_id: Uuid,
target_system_id: Uuid,
target_system_name: String,
cipher_id: Uuid,
kind: SealedTargetSystemKind,
password_policy: SealedPasswordPolicy,
account_identity: String,
terminate_sessions: bool,
execute_by: DateTime<Utc>,
}Expand description
A claim cross-checked by WorkSnapshot::verify; private fields keep it constructible only
there.
Fields§
§attempt_id: Uuid§job_id: Uuid§target_system_id: Uuid§target_system_name: String§cipher_id: Uuid§kind: SealedTargetSystemKind§password_policy: SealedPasswordPolicy§account_identity: String§terminate_sessions: bool§execute_by: DateTime<Utc>Implementations§
Source§impl VerifiedJob
impl VerifiedJob
Sourcepub fn attempt_id(&self) -> Uuid
pub fn attempt_id(&self) -> Uuid
The attempt every attempt-scoped request is keyed by.
Sourcepub fn target_system_id(&self) -> Uuid
pub fn target_system_id(&self) -> Uuid
The target system, matching both sealed blobs.
Sourcepub fn target_system_name(&self) -> &str
pub fn target_system_name(&self) -> &str
For logging only.
Sourcepub fn kind(&self) -> SealedTargetSystemKind
pub fn kind(&self) -> SealedTargetSystemKind
The target-system kind, from the sealed blob only.
Sourcepub fn password_policy(&self) -> &SealedPasswordPolicy
pub fn password_policy(&self) -> &SealedPasswordPolicy
The sealed password policy, already validated.
Sourcepub fn account_identity(&self) -> &str
pub fn account_identity(&self) -> &str
Passed verbatim to integrations, which must treat it as untrusted input.
Sourcepub fn terminate_sessions(&self) -> bool
pub fn terminate_sessions(&self) -> bool
Whether to terminate sessions, ANDed with the target’s support.
Sourcepub fn execute_by(&self) -> DateTime<Utc>
pub fn execute_by(&self) -> DateTime<Utc>
No target-side step starts after this.
Sourcepub fn generator_request(
&self,
) -> Result<PasswordGeneratorRequest, PasswordPolicyError>
pub fn generator_request( &self, ) -> Result<PasswordGeneratorRequest, PasswordPolicyError>
Converts the sealed password policy into a [PasswordGeneratorRequest] of length
max_length.
Re-validates although WorkSnapshot::verify already did, so any call site that skips it
fails closed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VerifiedJob
impl RefUnwindSafe for VerifiedJob
impl Send for VerifiedJob
impl Sync for VerifiedJob
impl Unpin for VerifiedJob
impl UnsafeUnpin for VerifiedJob
impl UnwindSafe for VerifiedJob
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Consume a handle, getting back the initial
Arc<> Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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