pub enum LibraryEntry {
Spec(String),
WithDocs(LibraryEntryObject),
}Expand description
A library entry: a bare spec string, or an object with a docsPaths
override. Serialized untagged so the string form stays a plain JSON string on
disk (existing ask.json files render unchanged).
Variants§
Spec(String)
WithDocs(LibraryEntryObject)
Implementations§
Source§impl LibraryEntry
impl LibraryEntry
Trait Implementations§
Source§impl Clone for LibraryEntry
impl Clone for LibraryEntry
Source§impl Debug for LibraryEntry
impl Debug for LibraryEntry
Source§impl<'de> Deserialize<'de> for LibraryEntry
impl<'de> Deserialize<'de> for LibraryEntry
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 LibraryEntry
Source§impl PartialEq for LibraryEntry
impl PartialEq for LibraryEntry
Source§impl Serialize for LibraryEntry
impl Serialize for LibraryEntry
impl StructuralPartialEq for LibraryEntry
Auto Trait Implementations§
impl Forget for LibraryEntry
impl Freeze for LibraryEntry
impl Move for LibraryEntry
impl RefUnwindSafe for LibraryEntry
impl Send for LibraryEntry
impl Sync for LibraryEntry
impl Unpin for LibraryEntry
impl UnsafeUnpin for LibraryEntry
impl UnwindSafe for LibraryEntry
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