pub enum BootstrapCss {
Bundled,
Url(String),
Cdn(String),
None,
}Expand description
How to load Bootstrap CSS.
Default: Bundled — uses the crate’s embedded Bootstrap 5.3.3.
Variants§
Bundled
Use the crate’s bundled Bootstrap 5.3.3 CSS (default, zero config).
Url(String)
Load from a custom URL (self-hosted, proxy to SSR backend, etc.).
ⓘ
BootstrapHead { css: BootstrapCss::Url("/static/vendor/bootstrap.min.css".into()) }Cdn(String)
Load from jsDelivr CDN with a specific version.
ⓘ
BootstrapHead { css: BootstrapCss::Cdn("5.3.3".into()) }None
Don’t load any CSS — user handles it themselves.
Trait Implementations§
Source§impl Clone for BootstrapCss
impl Clone for BootstrapCss
Source§fn clone(&self) -> BootstrapCss
fn clone(&self) -> BootstrapCss
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 Default for BootstrapCss
impl Default for BootstrapCss
Source§fn default() -> BootstrapCss
fn default() -> BootstrapCss
Returns the “default value” for a type. Read more
Source§impl PartialEq for BootstrapCss
impl PartialEq for BootstrapCss
impl StructuralPartialEq for BootstrapCss
Auto Trait Implementations§
impl Freeze for BootstrapCss
impl RefUnwindSafe for BootstrapCss
impl Send for BootstrapCss
impl Sync for BootstrapCss
impl Unpin for BootstrapCss
impl UnsafeUnpin for BootstrapCss
impl UnwindSafe for BootstrapCss
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> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
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<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.