gravatar_api

Crates.iogravatar_api
lib.rsgravatar_api
version0.3.0
sourcesrc
created_at2024-08-29 12:11:54.222559
updated_at2024-09-01 13:41:51.799851
descriptionAccess to the public Gravatar API
homepage
repositoryhttps://github.com/cathive/gravatar-api-rs
max_upload_size
id1356023
size12,487
Benjamin P. Jung (headcr4sh)

documentation

README

Gravatar API Client for Rust

A small library to access the Gravatar API, inspired by rust-gravatar.

Example Usage

extern crate gravatar_api;
use gravatar_api::avatars;

let url = avatars::Avatar::builder("john.doe@example.com")
    .size(512)
    .default(avatars::Default::RoboHash)
    .rating(avatars::Rating::G)
    .build()
    .image_url();
assert_eq!(
    url.as_str(),
    "https://www.gravatar.com/avatar/836f82db99121b3481011f16b49dfa5fbc714a0d1b1b9f784a1ebbbf5b39577f?s=512&r=g&d=robohash"
);
Commit count: 0

cargo fmt