pub struct Plugins(/* private fields */);Expand description
The original ordered PHP plugin configuration, with typed page activation at render time.
let presets = oxblade_adminlte::Plugins::presets()?;Implementations§
Source§impl Plugins
impl Plugins
Sourcepub fn presets() -> Result<Self, Error>
pub fn presets() -> Result<Self, Error>
Loads the named runtime presets from the pinned Laravel-AdminLTE configuration.
assert!(oxblade_adminlte::Plugins::presets().is_ok());Sourcepub fn resolve(
&self,
page: &BTreeMap<String, PluginActivation>,
rtl: bool,
version: &str,
host: &impl AssetHost,
) -> PageAssets
pub fn resolve( &self, page: &BTreeMap<String, PluginActivation>, rtl: bool, version: &str, host: &impl AssetHost, ) -> PageAssets
Resolves active CSS and JS references by declaration order.
assert!(Plugins::default().resolve(&Default::default(), false, "4.10", &Public).css().is_empty());Trait Implementations§
Source§impl<'de> Deserialize<'de> for Plugins
impl<'de> Deserialize<'de> for Plugins
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for Plugins
impl Freeze for Pluginswhere
*const u8 is !null: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<String, Plugin>>: Freeze,
impl Move for Plugins
impl RefUnwindSafe for Plugins
impl Send for Plugins
impl Sync for Plugins
impl Unpin for Plugins
impl UnsafeUnpin for Pluginswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<String, Plugin>>: UnsafeUnpin,
impl UnwindSafe for Plugins
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