pub struct CustomThemeLink {
pub id: String,
pub name: String,
pub hash: String,
pub extra: Extra,
}Expand description
The link from a book to the custom theme it was designed from
(StyleSettings::custom_theme, ADR-0015).
Fields§
§id: StringThe theme’s id in the author’s library.
name: StringThe name the author gave it, shown when the library lacks the theme.
hash: StringHash of the theme file’s content when the book last took the design from it; a different hash in the library means the theme has changed.
extra: ExtraFields written by newer builds, kept on round-trip.
Trait Implementations§
Source§impl Clone for CustomThemeLink
impl Clone for CustomThemeLink
Source§impl Debug for CustomThemeLink
impl Debug for CustomThemeLink
Source§impl<'de> Deserialize<'de> for CustomThemeLink
impl<'de> Deserialize<'de> for CustomThemeLink
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 CustomThemeLink
impl PartialEq for CustomThemeLink
Source§impl Serialize for CustomThemeLink
impl Serialize for CustomThemeLink
impl StructuralPartialEq for CustomThemeLink
Auto Trait Implementations§
impl Freeze for CustomThemeLink
impl RefUnwindSafe for CustomThemeLink
impl Send for CustomThemeLink
impl Sync for CustomThemeLink
impl Unpin for CustomThemeLink
impl UnsafeUnpin for CustomThemeLink
impl UnwindSafe for CustomThemeLink
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