pub struct AddonPackage {
pub addon: Addon,
pub dir: PathBuf,
pub module: String,
pub styles: Vec<String>,
pub head: Option<String>,
pub files: Vec<String>,
pub config: Table,
}Expand description
An add-on read off disk: what the compiled app carries, and the files the site ships.
Fields§
§addon: AddonThe functions and elements, as the compiled app carries them.
dir: PathBufThe package root.
module: StringThe JavaScript module, relative to Self::dir.
styles: Vec<String>Stylesheets the pages link, relative to Self::dir, in order.
head: Option<String>A classic script the pages run before they paint, relative to
Self::dir.
files: Vec<String>Other files the module reads at run time, relative to Self::dir. A
directory stands for everything under it.
config: TableThe config table the app’s dependency entry gave it, which a page
hands the module at install. Empty until the dependency is known:
read_web_half reads the module alone.
Trait Implementations§
Source§impl Clone for AddonPackage
impl Clone for AddonPackage
Source§fn clone(&self) -> AddonPackage
fn clone(&self) -> AddonPackage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AddonPackage
impl Debug for AddonPackage
Source§impl PartialEq for AddonPackage
impl PartialEq for AddonPackage
Source§fn eq(&self, other: &AddonPackage) -> bool
fn eq(&self, other: &AddonPackage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AddonPackage
Auto Trait Implementations§
impl Freeze for AddonPackage
impl RefUnwindSafe for AddonPackage
impl Send for AddonPackage
impl Sync for AddonPackage
impl Unpin for AddonPackage
impl UnsafeUnpin for AddonPackage
impl UnwindSafe for AddonPackage
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.