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 FromWasm for RotationAttempt
Available on crate feature wasm only.
impl FromWasm for RotationAttempt
wasm only.Source§impl PartialEq for RotationAttempt
impl PartialEq for RotationAttempt
Source§impl Serialize for RotationAttempt
impl Serialize for RotationAttempt
impl StructuralPartialEq for RotationAttempt
Source§impl ToWasm for RotationAttempt
Available on crate feature wasm only.
impl ToWasm for RotationAttempt
wasm only.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
Source§type JsType = JsType
type JsType = JsType
#[wasm_bindgen] extern "C" { .. }.
[Ts<T>] is #[repr(transparent)] over this and passes it across the
ABI as a plain JS handle, which any other representation would break.fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
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 more