pub struct Asset {
pub url: String,
pub integrity: Option<String>,
pub crossorigin: Option<String>,
}Expand description
A JS or CSS asset required by a plugin.
Rendered as a <script> or <link> tag in the HTML output.
Optional integrity and crossorigin attributes enable
Subresource Integrity (SRI) for CDN-loaded assets.
Fields§
§url: StringURL of the asset (JS or CSS file).
integrity: Option<String>SRI hash for integrity verification (e.g., “sha256-…”).
crossorigin: Option<String>Crossorigin attribute value (e.g., “” for anonymous).
Implementations§
Auto Trait Implementations§
impl Freeze for Asset
impl RefUnwindSafe for Asset
impl Send for Asset
impl Sync for Asset
impl Unpin for Asset
impl UnsafeUnpin for Asset
impl UnwindSafe for Asset
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