pub struct UserAuctionBid {
pub star_count: i64,
pub bid_date: i32,
pub next_bid_star_count: i64,
pub owner_id: MessageSender,
pub was_returned: bool,
}Expand description
Describes a bid of the current user in an auction
Fields§
§star_count: i64The number of Telegram Stars that were put in the bid
bid_date: i32Point in time (Unix timestamp) when the bid was made
next_bid_star_count: i64The minimum number of Telegram Stars that can be put for the next bid
owner_id: MessageSenderIdentifier of the user or the chat that will receive the auctioned item. If the auction is opened in context of another user or chat, then a warning is supposed to be shown to the current user
was_returned: boolTrue, if the bid was returned to the user, because it was outbid and can’t win anymore
Trait Implementations§
Source§impl Clone for UserAuctionBid
impl Clone for UserAuctionBid
Source§fn clone(&self) -> UserAuctionBid
fn clone(&self) -> UserAuctionBid
Returns a duplicate 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 UserAuctionBid
impl Debug for UserAuctionBid
Source§impl<'de> Deserialize<'de> for UserAuctionBid
impl<'de> Deserialize<'de> for UserAuctionBid
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 UserAuctionBid
impl PartialEq for UserAuctionBid
Source§impl Serialize for UserAuctionBid
impl Serialize for UserAuctionBid
impl StructuralPartialEq for UserAuctionBid
Auto Trait Implementations§
impl Freeze for UserAuctionBid
impl RefUnwindSafe for UserAuctionBid
impl Send for UserAuctionBid
impl Sync for UserAuctionBid
impl Unpin for UserAuctionBid
impl UnsafeUnpin for UserAuctionBid
impl UnwindSafe for UserAuctionBid
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