pub enum Kind {
Web,
Video,
Doc,
Markdown,
Html,
Image,
File,
Folder,
Mail,
AppLink,
Command,
Blocked,
}Expand description
What a target is, from its scheme, host and extension (never by fetching it).
Variants§
Web
A web page (https:, http:).
Video
A video: a video host’s page, or a video file, remote or local.
Doc
A page the application ships (docs:).
Markdown
A remote markdown file.
Html
A remote HTML file.
Image
An image, remote or local.
File
A local file.
Folder
A local folder.
An address (mailto:).
AppLink
The application’s own scheme (<app>://).
Command
A command (command:<id>?<json>).
Blocked
Nothing that may be opened (see the decision’s reason).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Kind
impl<'de> Deserialize<'de> for Kind
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 Copy for Kind
impl Eq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnsafeUnpin for Kind
impl UnwindSafe for Kind
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