pub enum UrlEntry {
Simple(String),
Full {
url: String,
aliases: Vec<String>,
},
}Expand description
A URL entry: either a plain URL string or a table with url + optional aliases.
In TOML this means all three forms work:
[urls]
dkdc-bookmarks = "https://github.com/dkdc-io/bookmarks"
github = { url = "https://github.com", aliases = ["gh"] }
[urls.linkedin]
url = "https://linkedin.com"
aliases = ["li", "ln"]Variants§
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UrlEntry
impl<'de> Deserialize<'de> for UrlEntry
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 StructuralPartialEq for UrlEntry
Auto Trait Implementations§
impl Freeze for UrlEntry
impl RefUnwindSafe for UrlEntry
impl Send for UrlEntry
impl Sync for UrlEntry
impl Unpin for UrlEntry
impl UnsafeUnpin for UrlEntry
impl UnwindSafe for UrlEntry
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