pub struct AuthFlowDiagnosis {
pub operation: String,
pub outcome: AuthFlowDiagnosisOutcome,
pub fields: Map<String, Value>,
}Fields§
§operation: String§outcome: AuthFlowDiagnosisOutcome§fields: Map<String, Value>Implementations§
Source§impl AuthFlowDiagnosis
impl AuthFlowDiagnosis
pub fn new( operation: impl Into<String>, outcome: AuthFlowDiagnosisOutcome, ) -> Self
pub fn started(operation: impl Into<String>) -> Self
pub fn succeeded(operation: impl Into<String>) -> Self
pub fn failed(operation: impl Into<String>) -> Self
pub fn rejected(operation: impl Into<String>) -> Self
pub fn with_outcome(self, outcome: AuthFlowDiagnosisOutcome) -> Self
pub fn field<V>(self, key: impl Into<String>, value: V) -> Selfwhere
V: Serialize,
pub fn to_json_value(&self) -> Value
Trait Implementations§
Source§impl Clone for AuthFlowDiagnosis
impl Clone for AuthFlowDiagnosis
Source§fn clone(&self) -> AuthFlowDiagnosis
fn clone(&self) -> AuthFlowDiagnosis
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthFlowDiagnosis
impl Debug for AuthFlowDiagnosis
Source§impl PartialEq for AuthFlowDiagnosis
impl PartialEq for AuthFlowDiagnosis
Source§impl Serialize for AuthFlowDiagnosis
impl Serialize for AuthFlowDiagnosis
impl StructuralPartialEq for AuthFlowDiagnosis
Auto Trait Implementations§
impl Freeze for AuthFlowDiagnosis
impl RefUnwindSafe for AuthFlowDiagnosis
impl Send for AuthFlowDiagnosis
impl Sync for AuthFlowDiagnosis
impl Unpin for AuthFlowDiagnosis
impl UnsafeUnpin for AuthFlowDiagnosis
impl UnwindSafe for AuthFlowDiagnosis
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