pub struct Application {Show 23 fields
pub id: ApplicationId,
pub name: String,
pub client_id: ClientId,
pub client_type: ClientType,
pub client_secret_hash: Option<PasswordHash>,
pub redirect_uris: String,
pub logo_url: Option<String>,
pub primary_color: Option<String>,
pub accent_hex: Option<String>,
pub accent_ink: Option<AccentInk>,
pub forced_mode: Option<Mode>,
pub font_css_url: Option<String>,
pub font_family: Option<String>,
pub splash_text: Option<String>,
pub splash_image_url: Option<String>,
pub splash_primitive: Option<SplashPrimitive>,
pub splash_url: Option<String>,
pub shader_cell_scale: Option<i64>,
pub is_trusted: bool,
pub created_by: Option<UserId>,
pub is_active: bool,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
An OIDC client application registered with allowthem.
client_secret_hash is skipped during serialization — the raw secret
is returned once at creation and is never retrievable again.
Fields§
§id: ApplicationId§name: String§client_id: ClientId§client_type: ClientType§client_secret_hash: Option<PasswordHash>§redirect_uris: String§logo_url: Option<String>§primary_color: Option<String>§accent_hex: Option<String>§accent_ink: Option<AccentInk>§forced_mode: Option<Mode>§font_css_url: Option<String>§font_family: Option<String>§splash_text: Option<String>§splash_image_url: Option<String>§splash_primitive: Option<SplashPrimitive>§splash_url: Option<String>§shader_cell_scale: Option<i64>§is_trusted: bool§created_by: Option<UserId>§is_active: bool§created_at: DateTime<Utc>§updated_at: DateTime<Utc>Implementations§
Source§impl Application
impl Application
Sourcepub fn redirect_uri_list(&self) -> Result<Vec<String>, AuthError>
pub fn redirect_uri_list(&self) -> Result<Vec<String>, AuthError>
Parse the stored JSON redirect_uris string into a Vec<String>.
Returns AuthError::Database if the stored value is malformed JSON.
This indicates a data integrity error — the core layer always validates
and serializes URIs correctly on write.
Sourcepub fn branding(&self) -> BrandingConfig
pub fn branding(&self) -> BrandingConfig
Extract the branding configuration for use in themed auth pages.
Trait Implementations§
Source§impl Clone for Application
impl Clone for Application
Source§fn clone(&self) -> Application
fn clone(&self) -> Application
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 Application
impl Debug for Application
Source§impl<'a, R: Row> FromRow<'a, R> for Applicationwhere
&'a str: ColumnIndex<R>,
ApplicationId: Decode<'a, R::Database> + Type<R::Database>,
String: Decode<'a, R::Database> + Type<R::Database>,
ClientId: Decode<'a, R::Database> + Type<R::Database>,
ClientType: Decode<'a, R::Database> + Type<R::Database>,
Option<PasswordHash>: Decode<'a, R::Database> + Type<R::Database>,
Option<String>: Decode<'a, R::Database> + Type<R::Database>,
Option<AccentInk>: Decode<'a, R::Database> + Type<R::Database>,
Option<Mode>: Decode<'a, R::Database> + Type<R::Database>,
Option<SplashPrimitive>: Decode<'a, R::Database> + Type<R::Database>,
Option<i64>: Decode<'a, R::Database> + Type<R::Database>,
bool: Decode<'a, R::Database> + Type<R::Database>,
Option<UserId>: Decode<'a, R::Database> + Type<R::Database>,
DateTime<Utc>: Decode<'a, R::Database> + Type<R::Database>,
impl<'a, R: Row> FromRow<'a, R> for Applicationwhere
&'a str: ColumnIndex<R>,
ApplicationId: Decode<'a, R::Database> + Type<R::Database>,
String: Decode<'a, R::Database> + Type<R::Database>,
ClientId: Decode<'a, R::Database> + Type<R::Database>,
ClientType: Decode<'a, R::Database> + Type<R::Database>,
Option<PasswordHash>: Decode<'a, R::Database> + Type<R::Database>,
Option<String>: Decode<'a, R::Database> + Type<R::Database>,
Option<AccentInk>: Decode<'a, R::Database> + Type<R::Database>,
Option<Mode>: Decode<'a, R::Database> + Type<R::Database>,
Option<SplashPrimitive>: Decode<'a, R::Database> + Type<R::Database>,
Option<i64>: Decode<'a, R::Database> + Type<R::Database>,
bool: Decode<'a, R::Database> + Type<R::Database>,
Option<UserId>: Decode<'a, R::Database> + Type<R::Database>,
DateTime<Utc>: Decode<'a, R::Database> + Type<R::Database>,
Auto Trait Implementations§
impl Freeze for Application
impl RefUnwindSafe for Application
impl Send for Application
impl Sync for Application
impl Unpin for Application
impl UnsafeUnpin for Application
impl UnwindSafe for Application
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more