pub struct Book {
pub taker_gets: Currency,
pub taker_pays: Currency,
pub taker: Option<String>,
pub snapshot: Option<bool>,
pub both: Option<bool>,
}Expand description
A book on the ledger.
Fields§
§taker_gets: CurrencySpecification of which currency the account taking the Offer would pay.
taker_pays: CurrencySpecification of which currency the account taking the Offer would receive.
taker: Option<String>Unique account address to use as a perspective for viewing offers, in the XRP Ledger’s base58 format.
snapshot: Option<bool>If true, return the current state of the order book once when you subscribe before sending updates. The default is false.
both: Option<bool>If true, return both sides of the order book. The default is false.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Book
impl RefUnwindSafe for Book
impl Send for Book
impl Sync for Book
impl Unpin for Book
impl UnwindSafe for Book
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