pub struct WhitelabelConfig {
pub name: String,
pub mark: String,
pub subtitle: String,
pub logo_url: Option<String>,
pub page_title: String,
pub parent_url: Option<String>,
pub parent_name: String,
pub api_docs_url: Option<String>,
pub css_url: Option<String>,
pub favicon_url: Option<String>,
pub default_namespace: String,
}Expand description
Operator-configurable dashboard identity. Construct via
WhitelabelConfig::from_env in production; tests can build
instances directly.
Fields§
§name: String§mark: StringSingle-letter (or short) glyph rendered inside the always-visible
badge square at the top of the sidebar. Derived from the first
character of name unless ASSAY_WHITELABEL_MARK overrides.
subtitle: StringMuted subtitle rendered beneath the brand name (empty → no subtitle line). Gives operators the canonical two-line brand block without needing a custom logo SVG.
logo_url: Option<String>§page_title: String§parent_url: Option<String>§parent_name: String§api_docs_url: Option<String>Some(url) → render the link pointing at url.
None → hide the link entirely.
css_url: Option<String>Optional stylesheet URL loaded after assay’s own CSS. Operators use this to re-skin the dashboard by overriding CSS custom properties or specific selectors without touching the source.
favicon_url: Option<String>Optional favicon URL. When None the built-in SVG A-mark is
served at /workflow/favicon.svg; when Some(url) the template
points <link rel="icon"> at the operator’s URL instead.
default_namespace: StringNamespace the dashboard opens on by default. Operators running
assay single-tenant (all workflows in one non-main namespace)
shouldn’t force every user to change the dropdown on first load.
Implementations§
Source§impl WhitelabelConfig
impl WhitelabelConfig
Sourcepub fn is_customised(&self) -> bool
pub fn is_customised(&self) -> bool
true when any operator-facing identity field has been overridden
from the default. Drives the “Powered by …” prefix in the footer
version line — attribution without burying the engine on the
standalone dashboard.
Trait Implementations§
Source§impl Clone for WhitelabelConfig
impl Clone for WhitelabelConfig
Source§fn clone(&self) -> WhitelabelConfig
fn clone(&self) -> WhitelabelConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for WhitelabelConfig
impl RefUnwindSafe for WhitelabelConfig
impl Send for WhitelabelConfig
impl Sync for WhitelabelConfig
impl Unpin for WhitelabelConfig
impl UnsafeUnpin for WhitelabelConfig
impl UnwindSafe for WhitelabelConfig
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
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>
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>
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