pub enum SurfaceContent {
Entry {
id: String,
path: Option<String>,
},
Web {
url: String,
},
}Expand description
What a surface shows. Only two kinds: a declared catalog entry
(resolved by the host from lingxia.toml) or an ad-hoc web page.
Variants§
Entry
A lingxia.toml-declared app / system feature, opened by id.
Fields
Web
An ad-hoc web page / PDF rendered by the in-app chromed browser. Whether
it presents as a main browser tab or a docked browser aside is decided by
role, not by the content — the browser always carries its own chrome.
Trait Implementations§
Source§impl Clone for SurfaceContent
impl Clone for SurfaceContent
Source§fn clone(&self) -> SurfaceContent
fn clone(&self) -> SurfaceContent
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 SurfaceContent
impl Debug for SurfaceContent
Source§impl<'de> Deserialize<'de> for SurfaceContent
impl<'de> Deserialize<'de> for SurfaceContent
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
Source§impl PartialEq for SurfaceContent
impl PartialEq for SurfaceContent
Source§fn eq(&self, other: &SurfaceContent) -> bool
fn eq(&self, other: &SurfaceContent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SurfaceContent
impl Serialize for SurfaceContent
impl StructuralPartialEq for SurfaceContent
Auto Trait Implementations§
impl Freeze for SurfaceContent
impl RefUnwindSafe for SurfaceContent
impl Send for SurfaceContent
impl Sync for SurfaceContent
impl Unpin for SurfaceContent
impl UnsafeUnpin for SurfaceContent
impl UnwindSafe for SurfaceContent
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