Struct rbmenu::bookmark::Bookmark [−][src]
pub struct Bookmark {
pub is_file: bool,
pub link: String,
pub name: String,
pub date: String,
pub id: u32,
}
Fields
is_file: bool
link: String
name: String
date: String
id: u32
Implementations
Generate a suitable name for Bookmark If name is empty or not provided, link is parsed to get the domain name. If name contains spaces, it is converted to underscores
Return bookmark with values
Print a coloured output id -> yellow bold name -> cyan bold link -> blue
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for Bookmark
impl UnwindSafe for Bookmark
Blanket Implementations
Mutably borrows from an owned value. Read more