Enum manifest::FontManifestWrapper
source · pub enum FontManifestWrapper {
Version1(FontsManifest),
Version2(FontsManifest),
}
Expand description
The various possible versions of the fonts manifest.
Variants§
Version1(FontsManifest)
Version 1. Deprecated.
Version2(FontsManifest)
Version 2. New and shiny. And most importantly, machine-generated, so production manifests can never get out of sync with the schema. (Checked in test manifests still can.)
Implementations§
source§impl<'de> FontManifestWrapper
impl<'de> FontManifestWrapper
pub fn deserialize<__D>(
__deserializer: __D,
) -> Result<FontManifestWrapper, __D::Error>where
__D: Deserializer<'de>,
source§impl FontManifestWrapper
impl FontManifestWrapper
pub fn serialize<__S>(
__self: &FontManifestWrapper,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Trait Implementations§
source§impl Debug for FontManifestWrapper
impl Debug for FontManifestWrapper
source§impl<'de> Deserialize<'de> for FontManifestWrapper
impl<'de> Deserialize<'de> for FontManifestWrapper
source§fn deserialize<D>(
deserializer: D,
) -> Result<Self, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<Self, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for FontManifestWrapper
impl Serialize for FontManifestWrapper
source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for FontManifestWrapper
impl RefUnwindSafe for FontManifestWrapper
impl Send for FontManifestWrapper
impl Sync for FontManifestWrapper
impl Unpin for FontManifestWrapper
impl UnwindSafe for FontManifestWrapper
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