fars 0.2.0

An unofficial Rust client for the Firebase Auth REST API.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// Attributes to delete profile information.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
pub enum DeleteAttribute {
    /// Delete the display name.
    DisplayName,
    /// Delete the photo url.
    PhotoUrl,
}

impl DeleteAttribute {
    /// Formats the delete attribute to a string representation of the Firebase Auth.
    pub fn format(self) -> &'static str {
        match self {
            | DeleteAttribute::DisplayName => "DISPLAY_NAME",
            | DeleteAttribute::PhotoUrl => "PHOTO_URL",
        }
    }
}