pub struct SettingsFlow {Show 13 fields
pub active: Option<String>,
pub continue_with: Option<Vec<ContinueWith>>,
pub expires_at: String,
pub id: String,
pub identity: Box<Identity>,
pub issued_at: String,
pub organization_id: Option<Option<String>>,
pub request_url: String,
pub return_to: Option<String>,
pub state: SettingsFlowState,
pub transient_payload: Option<Value>,
pub type: String,
pub ui: Box<UiContainer>,
}Expand description
SettingsFlow : This flow is used when an identity wants to update settings (e.g. profile data, passwords, …) in a selfservice manner. We recommend reading the User Settings Documentation
Fields§
§active: Option<String>Active, if set, contains the registration method that is being used. It is initially not set.
continue_with: Option<Vec<ContinueWith>>Contains a list of actions, that could follow this flow It can, for example, contain a reference to the verification flow, created as part of the user’s registration.
expires_at: StringExpiresAt is the time (UTC) when the flow expires. If the user still wishes to update the setting, a new flow has to be initiated.
id: StringID represents the flow’s unique ID. When performing the settings flow, this represents the id in the settings ui’s query parameter: http://<selfservice.flows.settings.ui_url>?flow=
identity: Box<Identity>§issued_at: StringIssuedAt is the time (UTC) when the flow occurred.
organization_id: Option<Option<String>>§request_url: StringRequestURL 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: SettingsFlowState§transient_payload: Option<Value>TransientPayload is used to pass data from the settings flow to hooks and email templates
type: StringThe flow type can either be api or browser.
ui: Box<UiContainer>Implementations§
Source§impl SettingsFlow
impl SettingsFlow
Sourcepub fn new(
expires_at: String,
id: String,
identity: Identity,
issued_at: String,
request_url: String,
state: SettingsFlowState,
type: String,
ui: UiContainer,
) -> SettingsFlow
pub fn new( expires_at: String, id: String, identity: Identity, issued_at: String, request_url: String, state: SettingsFlowState, type: String, ui: UiContainer, ) -> SettingsFlow
This flow is used when an identity wants to update settings (e.g. profile data, passwords, …) in a selfservice manner. We recommend reading the User Settings Documentation