Struct ory_client::models::recovery_flow::RecoveryFlow
source · pub struct RecoveryFlow {
pub active: Option<String>,
pub expires_at: String,
pub id: String,
pub issued_at: String,
pub request_url: String,
pub return_to: Option<String>,
pub state: RecoveryFlowState,
pub _type: String,
pub ui: Box<UiContainer>,
}
Expand description
RecoveryFlow : This request is used when an identity wants to recover their account. We recommend reading the Account Recovery Documentation
Fields§
§active: Option<String>
Active, if set, contains the recovery method that is being used. It is initially not set.
expires_at: String
ExpiresAt is the time (UTC) when the request expires. If the user still wishes to update the setting, a new request has to be initiated.
id: String
ID represents the request’s unique ID. When performing the recovery flow, this represents the id in the recovery ui’s query parameter: http://<selfservice.flows.recovery.ui_url>?request=
issued_at: String
IssuedAt is the time (UTC) when the request occurred.
request_url: String
RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL’s path or query for example.
return_to: Option<String>
ReturnTo contains the requested return_to URL.
state: RecoveryFlowState
§_type: String
The flow type can either be api
or browser
.
ui: Box<UiContainer>
Implementations§
source§impl RecoveryFlow
impl RecoveryFlow
sourcepub fn new(
expires_at: String,
id: String,
issued_at: String,
request_url: String,
state: RecoveryFlowState,
_type: String,
ui: UiContainer
) -> RecoveryFlow
pub fn new(
expires_at: String,
id: String,
issued_at: String,
request_url: String,
state: RecoveryFlowState,
_type: String,
ui: UiContainer
) -> RecoveryFlow
This request is used when an identity wants to recover their account. We recommend reading the Account Recovery Documentation
Trait Implementations§
source§impl Clone for RecoveryFlow
impl Clone for RecoveryFlow
source§fn clone(&self) -> RecoveryFlow
fn clone(&self) -> RecoveryFlow
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RecoveryFlow
impl Debug for RecoveryFlow
source§impl<'de> Deserialize<'de> for RecoveryFlow
impl<'de> Deserialize<'de> for RecoveryFlow
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 PartialEq<RecoveryFlow> for RecoveryFlow
impl PartialEq<RecoveryFlow> for RecoveryFlow
source§fn eq(&self, other: &RecoveryFlow) -> bool
fn eq(&self, other: &RecoveryFlow) -> bool
self
and other
values to be equal, and is used
by ==
.