pub struct Brand {
pub name: String,
pub logo: Option<String>,
pub favicon: Option<String>,
}Expand description
Branding for the panel’s shell: the sidebar header, the login card, and the
topbar below md, where the sidebar folds into a sheet.
Fields§
§name: StringDisplay name (e.g. "Acme").
logo: Option<String>Optional logo URL (e.g. "/logo.svg"). Rendered as an <img> when present.
favicon: Option<String>Optional favicon URL (e.g. "/favicon.svg"), the <link rel="icon"> of every page the
panel renders, its sign-in pages included.
Implementations§
Source§impl Brand
impl Brand
Sourcepub fn new(name: impl Into<String>) -> Self
pub fn new(name: impl Into<String>) -> Self
Create a brand with the given name (surrounding whitespace is
trimmed so " Acme " cannot break the flex h-16 header).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Brand
impl RefUnwindSafe for Brand
impl Send for Brand
impl Sync for Brand
impl Unpin for Brand
impl UnsafeUnpin for Brand
impl UnwindSafe for Brand
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