pub struct Oracle { /* private fields */ }Implementations§
Trait Implementations§
impl Copy for Oracle
impl Eq for Oracle
Source§impl LedgerObjectCommonFields for Oracle
impl LedgerObjectCommonFields for Oracle
Source§fn get_slot_num(&self) -> i32
fn get_slot_num(&self) -> i32
Returns the slot number (register number) where the ledger object is stored. Read more
Source§fn path(&self) -> LedgerPathBuilder
fn path(&self) -> LedgerPathBuilder
Starts a nested-field path rooted at this ledger object, read through its slot. Read more
Source§impl OracleFields for Oracle
impl OracleFields for Oracle
Source§fn owner(&self) -> Result<AccountID>
fn owner(&self) -> Result<AccountID>
The account with update and delete privileges for the oracle. It’s recommended to set up
multi-signing on this account.
Source§fn provider(&self) -> Result<StandardBlob>
fn provider(&self) -> Result<StandardBlob>
An arbitrary value that identifies an oracle provider, such as Chainlink, Band, or DIA. This
field is a string, up to 256 ASCII hex encoded characters (
0x20-0x7E).Source§fn asset_class(&self) -> Result<StandardBlob>
fn asset_class(&self) -> Result<StandardBlob>
Arbitrary string to describe the type of asset, such as currency, commodity, or index.
Must be formatted as hexadecimal representing ASCII characters (
0x20-0x7E), maximum 16
bytes.Source§fn last_update_time(&self) -> Result<u32>
fn last_update_time(&self) -> Result<u32>
The time the data was last updated, represented in Unix time. (Note: Unlike many other time
values on the XRP Ledger, this value does not use the Ripple Epoch.)
Source§fn uri(&self) -> Result<Option<UriBlob>>
fn uri(&self) -> Result<Option<UriBlob>>
An optional Universal Resource Identifier to reference price data off-chain. This field is
limited to 256 bytes.
Source§fn owner_node(&self) -> Result<u64>
fn owner_node(&self) -> Result<u64>
A hint indicating which page of the oracle owner’s owner directory links to this entry, in
case the directory consists of multiple pages.
Source§fn previous_txn_id(&self) -> Result<Hash256>
fn previous_txn_id(&self) -> Result<Hash256>
The hash of the previous transaction that modified this entry.
Source§fn previous_txn_lgr_seq(&self) -> Result<u32>
fn previous_txn_lgr_seq(&self) -> Result<u32>
The ledger index that this object was most recently modified or created in.
impl StructuralPartialEq for Oracle
Auto Trait Implementations§
impl Freeze for Oracle
impl RefUnwindSafe for Oracle
impl Send for Oracle
impl Sync for Oracle
impl Unpin for Oracle
impl UnsafeUnpin for Oracle
impl UnwindSafe for Oracle
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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