pub struct UserRating {
pub level: i64,
pub rating: i64,
pub current_level_rating: i64,
pub next_level_rating: Option<i64>,
pub extra: BTreeMap<String, Value>,
}Expand description
This object describes the rating of a user based on their Telegram Star spendings.
Fields§
§level: i64Current level of the user, indicating their reliability when purchasing digital goods and services. A higher level suggests a more trustworthy customer; a negative level is likely reason for concern.
rating: i64Numerical value of the user’s rating; the higher the rating, the better
current_level_rating: i64The rating value required to get the current level
next_level_rating: Option<i64>The rating value required to get to the next level; omitted if the maximum level was reached
extra: BTreeMap<String, Value>Implementations§
Trait Implementations§
Source§impl Clone for UserRating
impl Clone for UserRating
Source§impl Debug for UserRating
impl Debug for UserRating
Source§impl<'de> Deserialize<'de> for UserRating
impl<'de> Deserialize<'de> for UserRating
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 UserRating
impl PartialEq for UserRating
Source§impl Serialize for UserRating
impl Serialize for UserRating
impl StructuralPartialEq for UserRating
Auto Trait Implementations§
impl Freeze for UserRating
impl RefUnwindSafe for UserRating
impl Send for UserRating
impl Sync for UserRating
impl Unpin for UserRating
impl UnsafeUnpin for UserRating
impl UnwindSafe for UserRating
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