pub struct ViewDecl {
pub id: String,
pub site: Site,
pub title: String,
pub icon: String,
pub html: String,
}Expand description
A view a plugin declares (views in its manifest).
Fields§
§id: String[a-z0-9_-]{1,48}, unique in the plugin.
site: Site§title: String§icon: StringA lucide icon name (may be empty).
html: StringA web view (13.5+): the HTML file (in the plugin folder) shown on a web surface
instead of a view tree (see crate::web). Empty for tree views.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ViewDecl
impl<'de> Deserialize<'de> for ViewDecl
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
impl Eq for ViewDecl
impl StructuralPartialEq for ViewDecl
Auto Trait Implementations§
impl Forget for ViewDecl
impl Freeze for ViewDecl
impl Move for ViewDecl
impl RefUnwindSafe for ViewDecl
impl Send for ViewDecl
impl Sync for ViewDecl
impl Unpin for ViewDecl
impl UnsafeUnpin for ViewDecl
impl UnwindSafe for ViewDecl
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