Struct cp437_tools::meta::Meta

source ·
pub struct Meta {
    pub title: String,
    pub author: String,
    pub group: String,
    pub date: String,
    pub size: u32,
    pub type: (u8, u8),
    pub width: u16,
    pub height: u16,
    pub flags: u8,
    pub font: String,
    pub notes: Vec<String>,
}
Expand description

A structure representing a file’s metadata

Fields§

§title: String

The image’s title

§author: String

The image’s author

§group: String

The image author’s team or group

§date: String

The image creation date, in the YYYYMMDD format

§size: u32

The size of the file, sans this metadata

§type: (u8, u8)

The type of this file

Only supported values are

  • (1, 0)Character/ASCII
  • (1, 1)Character/ANSI

See https://www.acid.org/info/sauce/sauce.htm#FileType

§width: u16

Width of the image

§height: u16

Height of the image

§flags: u8

A bitfield of flags that define how to process an image

See https://www.acid.org/info/sauce/sauce.htm#ANSiFlags

§font: String

The name of the font this image uses

Only IBM VGA is supported.

§notes: Vec<String>

A list of comments on this image

Auto Trait Implementations§

§

impl Freeze for Meta

§

impl RefUnwindSafe for Meta

§

impl Send for Meta

§

impl Sync for Meta

§

impl Unpin for Meta

§

impl UnwindSafe for Meta

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.