pub struct NFTInfo<'a> {
pub common_fields: CommonFields<'a>,
pub ledger_lookup: Option<LookupByLedgerRequest<'a>>,
pub nft_id: Cow<'a, str>,
}
Expand description
The nft_info
method retrieves all the information about the
NFToken
Fields§
§common_fields: CommonFields<'a>
The common fields shared by all requests.
ledger_lookup: Option<LookupByLedgerRequest<'a>>
The unique identifier of a ledger.
nft_id: Cow<'a, str>
The unique identifier of an NFToken. The request returns past transactions of this NFToken.
Implementations§
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for NFTInfo<'a>
impl<'de, 'a> Deserialize<'de> for NFTInfo<'a>
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 Model for NFTInfo<'_>
impl Model for NFTInfo<'_>
Source§fn get_errors(&self) -> XRPLModelResult<()>
fn get_errors(&self) -> XRPLModelResult<()>
Collects a models errors and returns the first error that occurs.
Source§fn validate(&self) -> XRPLModelResult<()>
fn validate(&self) -> XRPLModelResult<()>
Simply forwards the error from
get_errors
if there was one.Source§impl<'a> Request<'a> for NFTInfo<'a>
impl<'a> Request<'a> for NFTInfo<'a>
fn get_common_fields(&self) -> &CommonFields<'a>
fn get_common_fields_mut(&mut self) -> &mut CommonFields<'a>
impl<'a> Eq for NFTInfo<'a>
impl<'a> StructuralPartialEq for NFTInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for NFTInfo<'a>
impl<'a> RefUnwindSafe for NFTInfo<'a>
impl<'a> Send for NFTInfo<'a>
impl<'a> Sync for NFTInfo<'a>
impl<'a> Unpin for NFTInfo<'a>
impl<'a> UnwindSafe for NFTInfo<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.