pub struct Bounty {
pub target_id: UserId,
pub target_name: String,
pub target_level: i32,
pub lister_id: Option<UserId>,
pub lister_name: Option<String>,
pub reward: i64,
pub reason: Option<String>,
pub quantity: i32,
pub is_anonymous: bool,
pub valid_until: i32,
}
Fields§
§target_id: UserId
§target_name: String
§target_level: i32
§lister_id: Option<UserId>
If the bounty is anonymous this field is null.
lister_name: Option<String>
§reward: i64
§reason: Option<String>
§quantity: i32
§is_anonymous: bool
§valid_until: i32
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Bounty
impl<'de> Deserialize<'de> for Bounty
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
impl StructuralPartialEq for Bounty
Auto Trait Implementations§
impl Freeze for Bounty
impl RefUnwindSafe for Bounty
impl Send for Bounty
impl Sync for Bounty
impl Unpin for Bounty
impl UnwindSafe for Bounty
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