fusionauth_rust_client/models/
family_role.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum FamilyRole {
17 #[serde(rename = "Child")]
18 Child,
19 #[serde(rename = "Teen")]
20 Teen,
21 #[serde(rename = "Adult")]
22 Adult,
23
24}
25
26impl std::fmt::Display for FamilyRole {
27 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
28 match self {
29 Self::Child => write!(f, "Child"),
30 Self::Teen => write!(f, "Teen"),
31 Self::Adult => write!(f, "Adult"),
32 }
33 }
34}
35
36impl Default for FamilyRole {
37 fn default() -> FamilyRole {
38 Self::Child
39 }
40}
41