pub struct RegistryEntry {
pub id: String,
pub aliases: Vec<String>,
pub builtin: Option<String>,
pub path: Option<PathBuf>,
pub url: Option<String>,
pub title: Option<String>,
pub description: Option<String>,
pub fields: Vec<String>,
pub kind: Option<StyleKind>,
}Expand description
A single entry in a style registry.
Fields§
§id: StringCanonical style ID, must match the key used in get_embedded_style.
aliases: Vec<String>Short aliases that resolve to this entry (default empty).
builtin: Option<String>Name of an embedded style (present for the default registry).
path: Option<PathBuf>Relative path to a YAML file (used in local registries).
url: Option<String>HTTP URL to a YAML style file.
title: Option<String>Human-readable title from the style metadata.
description: Option<String>Human-readable description.
fields: Vec<String>Subject/domain classification tags (default empty).
kind: Option<StyleKind>Tier classification (base, profile, journal, independent).
Trait Implementations§
Source§impl Clone for RegistryEntry
impl Clone for RegistryEntry
Source§fn clone(&self) -> RegistryEntry
fn clone(&self) -> RegistryEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RegistryEntry
impl Debug for RegistryEntry
Source§impl<'de> Deserialize<'de> for RegistryEntry
impl<'de> Deserialize<'de> for RegistryEntry
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RegistryEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RegistryEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for RegistryEntry
impl Serialize for RegistryEntry
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 RegistryEntry
impl RefUnwindSafe for RegistryEntry
impl Send for RegistryEntry
impl Sync for RegistryEntry
impl Unpin for RegistryEntry
impl UnsafeUnpin for RegistryEntry
impl UnwindSafe for RegistryEntry
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