pub struct RotationAttempt {
pub id: RotationAttemptId,
pub job_id: RotationJobId,
pub claimed_by_access_connector_id: Option<AccessConnectorId>,
pub status: RotationAttemptStatus,
pub failure_reason: Option<String>,
pub failure_code: Option<RotationFailureCode>,
pub cipher_updated: bool,
pub sync_state: Option<RotationSyncState>,
pub session_termination: Option<SessionTerminationOutcome>,
pub started_at: DateTime<Utc>,
pub ended_at: Option<DateTime<Utc>>,
}Expand description
One connector’s execution of the rotation sequence for a job.
Fields§
§id: RotationAttemptIdThe attempt’s unique identifier.
job_id: RotationJobIdThe job this attempt belongs to.
claimed_by_access_connector_id: Option<AccessConnectorId>The connector that ran this attempt. None on a payload the server did not attribute.
status: RotationAttemptStatusCurrent execution state of the attempt.
failure_reason: Option<String>Operator-facing failure reason, set for an errored attempt. Reported by the connector and never raw target output; treat it as untrusted text for display only.
failure_code: Option<RotationFailureCode>The code at the start of failure_reason. None when there is no
reason; Unknown when the code is not one this SDK
recognizes.
cipher_updated: boolWhether the vault cipher was written with the rotated credential.
sync_state: Option<RotationSyncState>Whether a failure left the target’s credential changed. None unless the attempt errored.
session_termination: Option<SessionTerminationOutcome>Whether active sessions were terminated after rotating. None unless the attempt rotated.
started_at: DateTime<Utc>The connector’s start time for this attempt (UTC).
ended_at: Option<DateTime<Utc>>The attempt’s resolution time (UTC), or None while still executing.
Trait Implementations§
Source§impl Clone for RotationAttempt
impl Clone for RotationAttempt
Source§fn clone(&self) -> RotationAttempt
fn clone(&self) -> RotationAttempt
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RotationAttempt
impl Debug for RotationAttempt
Source§impl<'de> Deserialize<'de> for RotationAttempt
impl<'de> Deserialize<'de> for RotationAttempt
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<RotationAttempt> for JsValuewhere
RotationAttempt: Serialize,
impl From<RotationAttempt> for JsValuewhere
RotationAttempt: Serialize,
Source§fn from(value: RotationAttempt) -> Self
fn from(value: RotationAttempt) -> Self
Source§impl FromWasmAbi for RotationAttemptwhere
Self: DeserializeOwned,
impl FromWasmAbi for RotationAttemptwhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for &RotationAttemptwhere
RotationAttempt: Serialize,
impl IntoWasmAbi for &RotationAttemptwhere
RotationAttempt: Serialize,
Source§impl IntoWasmAbi for RotationAttemptwhere
RotationAttempt: Serialize,
impl IntoWasmAbi for RotationAttemptwhere
RotationAttempt: Serialize,
Source§impl OptionFromWasmAbi for RotationAttemptwhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for RotationAttemptwhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for RotationAttemptwhere
RotationAttempt: Serialize,
impl OptionIntoWasmAbi for RotationAttemptwhere
RotationAttempt: Serialize,
Source§impl PartialEq for RotationAttempt
impl PartialEq for RotationAttempt
Source§impl RefFromWasmAbi for RotationAttemptwhere
Self: DeserializeOwned,
impl RefFromWasmAbi for RotationAttemptwhere
Self: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
Self are recovered from.Source§type Anchor = SelfOwner<RotationAttempt>
type Anchor = SelfOwner<RotationAttempt>
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl Serialize for RotationAttempt
impl Serialize for RotationAttempt
impl StructuralPartialEq for RotationAttempt
Source§impl TryFrom<PamRotationAttemptResponseModel> for RotationAttempt
impl TryFrom<PamRotationAttemptResponseModel> for RotationAttempt
Source§impl Tsify for RotationAttempt
impl Tsify for RotationAttempt
const DECL: &'static str = "/**\n * One connector\\\'s execution of the rotation sequence for a job.\n */\nexport interface RotationAttempt {\n /**\n * The attempt\\\'s unique identifier.\n */\n id: RotationAttemptId;\n /**\n * The job this attempt belongs to.\n */\n jobId: RotationJobId;\n /**\n * The connector that ran this attempt. `None` on a payload the server did not attribute.\n */\n claimedByAccessConnectorId: AccessConnectorId | undefined;\n /**\n * Current execution state of the attempt.\n */\n status: RotationAttemptStatus;\n /**\n * Operator-facing failure reason, set for an errored attempt. Reported by the connector and\n * never raw target output; treat it as untrusted text for display only.\n */\n failureReason: string | undefined;\n /**\n * The code at the start of [`failure_reason`](Self::failure_reason). `None` when there is no\n * reason; [`Unknown`](RotationFailureCode::Unknown) when the code is not one this SDK\n * recognizes.\n */\n failureCode: RotationFailureCode | undefined;\n /**\n * Whether the vault cipher was written with the rotated credential.\n */\n cipherUpdated: boolean;\n /**\n * Whether a failure left the target\\\'s credential changed. `None` unless the attempt errored.\n */\n syncState: RotationSyncState | undefined;\n /**\n * Whether active sessions were terminated after rotating. `None` unless the attempt rotated.\n */\n sessionTermination: SessionTerminationOutcome | undefined;\n /**\n * The connector\\\'s start time for this attempt (UTC).\n */\n startedAt: DateTime<Utc>;\n /**\n * The attempt\\\'s resolution time (UTC), or `None` while still executing.\n */\n endedAt: DateTime<Utc> | undefined;\n}"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Source§impl VectorFromWasmAbi for RotationAttemptwhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for RotationAttemptwhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for RotationAttemptwhere
RotationAttempt: Serialize,
impl VectorIntoWasmAbi for RotationAttemptwhere
RotationAttempt: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribe for RotationAttempt
impl WasmDescribe for RotationAttempt
Auto Trait Implementations§
impl Freeze for RotationAttempt
impl RefUnwindSafe for RotationAttempt
impl Send for RotationAttempt
impl Sync for RotationAttempt
impl Unpin for RotationAttempt
impl UnsafeUnpin for RotationAttempt
impl UnwindSafe for RotationAttempt
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
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,
§impl<T> CompatExt for T
impl<T> CompatExt for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
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> ⓘ
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> ⓘ
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 moreimpl<T> Persist for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.