pub struct EntryMetadata {
pub image_width: Option<u32>,
pub image_height: Option<u32>,
pub font_family: Option<String>,
pub font_style: Option<String>,
pub font_is_monospace: Option<bool>,
pub font_num_glyphs: Option<u32>,
pub locales: Vec<String>,
pub audio_duration_secs: Option<f64>,
pub audio_sample_rate: Option<u32>,
pub audio_channels: Option<u32>,
}Expand description
Type-specific metadata extracted at import time.
Fields§
§image_width: Option<u32>Width of an imported image after conversion.
image_height: Option<u32>Height of an imported image after conversion.
font_family: Option<String>Font family name extracted from the font metadata.
font_style: Option<String>Font style name extracted from the font metadata.
font_is_monospace: Option<bool>Whether the font is monospaced.
font_num_glyphs: Option<u32>Total glyph count reported by the font.
locales: Vec<String>Locale masks used when registering a font with LibSharedMedia.
audio_duration_secs: Option<f64>Audio duration in seconds.
audio_sample_rate: Option<u32>Audio sample rate in Hz.
audio_channels: Option<u32>Number of audio channels.
Trait Implementations§
Source§impl Clone for EntryMetadata
impl Clone for EntryMetadata
Source§fn clone(&self) -> EntryMetadata
fn clone(&self) -> EntryMetadata
Returns a duplicate of the value. Read more
1.0.0 · 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 EntryMetadata
impl Debug for EntryMetadata
Source§impl Default for EntryMetadata
impl Default for EntryMetadata
Source§fn default() -> EntryMetadata
fn default() -> EntryMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EntryMetadata
impl<'de> Deserialize<'de> for EntryMetadata
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 EntryMetadata
impl PartialEq for EntryMetadata
Source§impl Serialize for EntryMetadata
impl Serialize for EntryMetadata
impl StructuralPartialEq for EntryMetadata
Auto Trait Implementations§
impl Freeze for EntryMetadata
impl RefUnwindSafe for EntryMetadata
impl Send for EntryMetadata
impl Sync for EntryMetadata
impl Unpin for EntryMetadata
impl UnsafeUnpin for EntryMetadata
impl UnwindSafe for EntryMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().