pub struct GlyphResourceDescriptor {
pub contract_version: u16,
pub resource_key: String,
pub metrics_contract_version: u16,
pub license_notice: String,
pub fallback: GlyphFallbackPolicy,
}Expand description
Reproducible metadata for a host-resolved font or notation glyph resource.
acorde does not load, embed, or license-check the resource. It does require the host to
identify the resource, its metrics contract, license notice, and fallback behavior before a
publication export can claim reproducibility.
Fields§
§contract_version: u16§resource_key: String§metrics_contract_version: u16§license_notice: String§fallback: GlyphFallbackPolicyImplementations§
Source§impl GlyphResourceDescriptor
impl GlyphResourceDescriptor
Sourcepub fn validate(&self) -> Result<(), GlyphResourceDescriptorError>
pub fn validate(&self) -> Result<(), GlyphResourceDescriptorError>
Validate the metadata needed to resolve a reproducible host resource.
Trait Implementations§
Source§impl Clone for GlyphResourceDescriptor
impl Clone for GlyphResourceDescriptor
Source§fn clone(&self) -> GlyphResourceDescriptor
fn clone(&self) -> GlyphResourceDescriptor
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 GlyphResourceDescriptor
impl Debug for GlyphResourceDescriptor
Source§impl<'de> Deserialize<'de> for GlyphResourceDescriptor
impl<'de> Deserialize<'de> for GlyphResourceDescriptor
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 GlyphResourceDescriptor
Source§impl PartialEq for GlyphResourceDescriptor
impl PartialEq for GlyphResourceDescriptor
Source§impl Serialize for GlyphResourceDescriptor
impl Serialize for GlyphResourceDescriptor
impl StructuralPartialEq for GlyphResourceDescriptor
Auto Trait Implementations§
impl Freeze for GlyphResourceDescriptor
impl RefUnwindSafe for GlyphResourceDescriptor
impl Send for GlyphResourceDescriptor
impl Sync for GlyphResourceDescriptor
impl Unpin for GlyphResourceDescriptor
impl UnsafeUnpin for GlyphResourceDescriptor
impl UnwindSafe for GlyphResourceDescriptor
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