pub struct SettingsFlow {
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 request_url: String,
pub return_to: Option<String>,
pub state: Option<Value>,
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.
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: Option<Value>State represents the state of this flow. It knows two states: show_form: No user data has been collected, or it is invalid, and thus the form should be shown. success: Indicates that the settings flow has been updated successfully with the provided data. Done will stay true when repeatedly checking. If set to true, done will revert back to false only when a flow with invalid (e.g. "please use a valid phone number") data was sent.
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: Option<Value>,
type: String,
ui: UiContainer,
) -> SettingsFlow
pub fn new( expires_at: String, id: String, identity: Identity, issued_at: String, request_url: String, state: Option<Value>, 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
Trait Implementations§
Source§impl Clone for SettingsFlow
impl Clone for SettingsFlow
Source§fn clone(&self) -> SettingsFlow
fn clone(&self) -> SettingsFlow
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more