mirror of
https://github.com/mii443/vrchatapi-rust.git
synced 2025-08-22 15:45:35 +00:00
33 lines
666 B
Rust
33 lines
666 B
Rust
/*
|
|
* VRChat API Documentation
|
|
*
|
|
*
|
|
* Contact: me@ruby.js.org
|
|
* Generated by: https://openapi-generator.tech
|
|
*/
|
|
|
|
|
|
|
|
|
|
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
|
pub struct FriendStatus {
|
|
#[serde(rename = "incomingRequest")]
|
|
pub incoming_request: bool,
|
|
#[serde(rename = "isFriend")]
|
|
pub is_friend: bool,
|
|
#[serde(rename = "outgoingRequest")]
|
|
pub outgoing_request: bool,
|
|
}
|
|
|
|
impl FriendStatus {
|
|
pub fn new(incoming_request: bool, is_friend: bool, outgoing_request: bool) -> FriendStatus {
|
|
FriendStatus {
|
|
incoming_request,
|
|
is_friend,
|
|
outgoing_request,
|
|
}
|
|
}
|
|
}
|
|
|
|
|