Enum gravatar::Default

source ·
pub enum Default {
    ImageUrl(Url),
    Http404,
    Blank,
    MysteryMan,
    Identicon,
    MonsterId,
    Wavatar,
    Retro,
}
Expand description

The default image to display if the user’s email does not have a Gravatar.

See https://en.gravatar.com/site/implement/images/#default-image.

Variants

ImageUrl(Url)

The URL of an image file to display as the default.

Http404

Instead of loading an image, the Gravatar URL will return an HTTP 404 (File Not Found) response if the email is not found.

Blank

A transparent PNG image.

MysteryMan

A simple, cartoon-style silhouetted outline of a person that does not vary by email hash.

Identicon

A geometric pattern based on the email hash.

MonsterId

A “monster” with different colors, faces, etc. that are generated by the email hash.

Wavatar

A face with different features and backgrounds, generated by the email hash.

Retro

An 8-bit arcade-style pixelated face that is generated by the email hash.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.