changed RelationshipType enum to camel case

This commit is contained in:
Mahesh Bansod 2021-10-23 21:32:26 +05:30
parent aa59b3c9e3
commit b220ea7b65
1 changed files with 8 additions and 7 deletions

View File

@ -121,14 +121,15 @@ pub struct Profile {
/// Relationship of a peer with another peer.
/// https://github.com/intellivoid/Socialvoid-Standard-Documentation/blob/master/Types/RelationshipTypes.md
#[derive(Serialize, Deserialize, Debug)]
#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
pub enum RelationshipType {
NONE,
FOLLOWING,
FOLLOWS_YOU,
AWAITING_APPROVAL,
MUTUALLY_FOLLOWING,
BLOCKED,
BLOCKED_YOU,
None,
Following,
FollowsYou,
AwaitingApproval,
MutuallyFollowing,
Blocked,
BlockedYou,
}
impl std::fmt::Display for Profile {