Struct vrchatapi::models::sent_notification::SentNotification
source · pub struct SentNotification {
pub created_at: String,
pub details: String,
pub id: String,
pub message: String,
pub reciever_user_id: String,
pub sender_user_id: String,
pub sender_username: Option<String>,
pub type: NotificationType,
}Expand description
SentNotification :
Fields§
§created_at: String§details: StringNOTICE: This is not a JSON object, this is a json encoded object, meaning you have to json-de-encode to get the NotificationDetail object depending on the NotificationType.
id: String§message: String§reciever_user_id: StringA users unique ID, usually in the form of usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469. Legacy players can have old IDs in the form of 8JoV9XEdpo. The ID can never be changed.
sender_user_id: StringA users unique ID, usually in the form of usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469. Legacy players can have old IDs in the form of 8JoV9XEdpo. The ID can never be changed.
sender_username: Option<String>-| DEPRECATED: VRChat API no longer return usernames of other users. See issue by Tupper for more information.
type: NotificationTypeImplementations§
source§impl SentNotification
impl SentNotification
sourcepub fn new(
created_at: String,
details: String,
id: String,
message: String,
reciever_user_id: String,
sender_user_id: String,
type: NotificationType
) -> SentNotification
pub fn new( created_at: String, details: String, id: String, message: String, reciever_user_id: String, sender_user_id: String, type: NotificationType ) -> SentNotification
Trait Implementations§
source§impl Clone for SentNotification
impl Clone for SentNotification
source§fn clone(&self) -> SentNotification
fn clone(&self) -> SentNotification
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for SentNotification
impl Debug for SentNotification
source§impl Default for SentNotification
impl Default for SentNotification
source§fn default() -> SentNotification
fn default() -> SentNotification
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SentNotification
impl<'de> Deserialize<'de> for SentNotification
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for SentNotification
impl PartialEq for SentNotification
source§fn eq(&self, other: &SentNotification) -> bool
fn eq(&self, other: &SentNotification) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for SentNotification
impl Serialize for SentNotification
impl StructuralPartialEq for SentNotification
Auto Trait Implementations§
impl RefUnwindSafe for SentNotification
impl Send for SentNotification
impl Sync for SentNotification
impl Unpin for SentNotification
impl UnwindSafe for SentNotification
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more