fn person_json(person: &Person, token: &String) -> serde_json::Value {
    json!({
        "authenticated": true,
        "uid": person.exterior.uid.to_string(),
        "token": token.clone(),
        "username": person.exterior.username.clone(),
        "image_url": person.exterior.image_url.clone(),
    })
}
/// Generates a JSON object which represents a person, suitable for
/// sending to the front-end.
Generates a JSON object which represents a person, suitable for
sending to the front-end.
Generates a JSON object which represents a person suitable for sending to the front - end .
fn person_json(person: &Person, token: &String) -> serde_json::Value {
    json!({
        "authenticated": true,
        "uid": person.exterior.uid.to_string(),
        "token": token.clone(),
        "username": person.exterior.username.clone(),
        "image_url": person.exterior.image_url.clone(),
    })
}
fn person_json ( person : & Person , token : & String ) -> serde_json :: Value { json ! ( { " " true " " person exterior uid to_string ( ) " " token clone ( ) " " person exterior username clone ( ) " " person exterior image_url clone ( ) } ) }
Generates a JSON object which represents a person, suitable for
sending to the front-end.
Generates a JSON object which represents a person suitable for sending to the front - end .
person
&Person
token
&String
person
&Person
token
&String