[][src]Struct algorand_rs::auction::Bid

pub struct Bid {
    pub auction_id: u64,
    pub auction_key: Address,
    pub bidder_key: Address,
    pub bid_currency: u64,
    pub bid_id: u64,
    pub max_price: u64,
}

A bid by a user as part of an auction.

Fields

auction_id: u64

Identifies the auction for which this bid is intended

auction_key: Address

The auction for this bid.

bidder_key: Address

The bidder placing this bid.

bid_currency: u64

How much external currency the bidder is putting in with this bid.

bid_id: u64

Identifies this bid. The first bid by a bidder with a particular bid_id on the blockchain will be considered, preventing replay of bids. Specifying a different bid_id allows the bidder to place multiple bids in an auction.

max_price: u64

The maximum price, in units of external currency per Algo, that the bidder is willing to pay. This must be as high as the current price of the auction in the block in which this bid appears.

Trait Implementations

impl Clone for Bid[src]

impl Copy for Bid[src]

impl Debug for Bid[src]

impl<'de> Deserialize<'de> for Bid[src]

impl Eq for Bid[src]

impl PartialEq<Bid> for Bid[src]

impl Serialize for Bid[src]

impl StructuralEq for Bid[src]

impl StructuralPartialEq for Bid[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,