Enum repng::meta::Keyword [] [src]

pub enum Keyword<'a> {
    Title,
    Author,
    Description,
    Copyright,
    CreationTime,
    Software,
    Disclaimer,
    Warning,
    Source,
    Comment,
    Other(&'a str),
}

A metadata category.

Variants

Short (one line) title or caption for image.

Name of image's creator.

Description of image (possibly long).

Copyright notice.

Time of original image creation.

Software used to create the image.

Legal disclaimer.

Warning of nature of content.

Device used to create the image.

Miscellaneous comment.

A custom keyword between 1 and 79 characters in length.

Methods

impl<'a> Keyword<'a>
[src]

[src]

Whether the keyword is valid.

  • It must be at least 1 character long.
  • It must be no more than 79 characters long.
  • It must only use the characters in the ASCII range [32, 126].
  • It must not contain leading or trailing spaces.
  • It must not contain consecutive spaces.

[src]

Get the keyword as a string.

Trait Implementations

Auto Trait Implementations

impl<'a> Send for Keyword<'a>

impl<'a> Sync for Keyword<'a>