rust-gravatar
rust-gravatar
is a small Rust library that generates Gravatar image URLs based
on the
official Gravatar specification.
Example
extern crate gravatar;
use ;
let mut g = new;
g.size = Some;
g.rating = Some;
assert_eq!;
rust-gravatar
is a small Rust library that generates Gravatar image URLs based
on the
official Gravatar specification.
extern crate gravatar;
use gravatar::{Gravatar, Rating};
let mut g = Gravatar::new("email@example.com");
g.size = Some(150);
g.rating = Some(Rating::Pg);
assert_eq!(
g.image_url(),
"https://secure.gravatar.com/avatar/5658ffccee7f0ebfda2b226238b1eb6e\
?s=150&r=pg"
);