pub struct ReportRotationFailedRequestModel {
pub sync_state: PamRotationSyncState,
pub error_code: String,
pub detail: Option<String>,
}Expand description
ReportRotationFailedRequestModel : The body of POST access-connectors/rotation/attempts/{id}/failure (spec RecordRotationFailed). The contract
forbids forwarding raw target-system error output – it can echo credentials – so the access
connector reports an
Bit.Services.Pam.AccessConnector.Rotation.Api.Models.Request.ReportRotationFailedRequestModel.
ErrorCode token it defines plus an optional
Bit.Services.Pam.AccessConnector.Rotation.Api.Models.Request.ReportRotationFailedRequestModel.
Detail. The combined reason the two produce is truncated rather than rejected, since it can
exceed the length the server records.
Fields§
§sync_state: PamRotationSyncState§error_code: StringA connector-defined token classifying the failure – never raw target-system output.
detail: Option<String>Additional human-readable context for the failure, subject to the same no-raw-target-output contract as Bit.Services.Pam.AccessConnector.Rotation.Api.Models.Request. ReportRotationFailedRequestModel.ErrorCode.
Implementations§
Source§impl ReportRotationFailedRequestModel
impl ReportRotationFailedRequestModel
Sourcepub fn new(
sync_state: PamRotationSyncState,
error_code: String,
) -> ReportRotationFailedRequestModel
pub fn new( sync_state: PamRotationSyncState, error_code: String, ) -> ReportRotationFailedRequestModel
The body of POST access-connectors/rotation/attempts/{id}/failure (spec
RecordRotationFailed). The contract forbids forwarding raw target-system error output –
it can echo credentials – so the access connector reports an
Bit.Services.Pam.AccessConnector.Rotation.Api.Models.Request.
ReportRotationFailedRequestModel.ErrorCode token it defines plus an optional
Bit.Services.Pam.AccessConnector.Rotation.Api.Models.Request.
ReportRotationFailedRequestModel.Detail. The combined reason the two produce is truncated
rather than rejected, since it can exceed the length the server records.
Trait Implementations§
Source§impl Clone for ReportRotationFailedRequestModel
impl Clone for ReportRotationFailedRequestModel
Source§fn clone(&self) -> ReportRotationFailedRequestModel
fn clone(&self) -> ReportRotationFailedRequestModel
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for ReportRotationFailedRequestModel
impl Default for ReportRotationFailedRequestModel
Source§fn default() -> ReportRotationFailedRequestModel
fn default() -> ReportRotationFailedRequestModel
Source§impl<'de> Deserialize<'de> for ReportRotationFailedRequestModel
impl<'de> Deserialize<'de> for ReportRotationFailedRequestModel
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>,
impl StructuralPartialEq for ReportRotationFailedRequestModel
Auto Trait Implementations§
impl Freeze for ReportRotationFailedRequestModel
impl RefUnwindSafe for ReportRotationFailedRequestModel
impl Send for ReportRotationFailedRequestModel
impl Sync for ReportRotationFailedRequestModel
impl Unpin for ReportRotationFailedRequestModel
impl UnsafeUnpin for ReportRotationFailedRequestModel
impl UnwindSafe for ReportRotationFailedRequestModel
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
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