pub struct PositionViewEntry<V> {
pub token_id: Uint<256, 4>,
pub result: Result<(V, Address), String>,
pub fees: Option<PositionFees>,
}Expand description
One entry in the output — either decoded values or an error string.
Per-entry success/error discrimination keeps the batch resilient: a single bad token ID (nonexistent / burned / non-NFPM contract) does not abort the whole multicall.
Fields§
§token_id: Uint<256, 4>The token ID echoed back from the input.
result: Result<(V, Address), String>Decoded (view, owner) on success, error message on failure.
fees: Option<PositionFees>Some(fees) only when --with-fees was set AND Phase 2
succeeded for this position. None otherwise.
Trait Implementations§
Source§impl<V> Clone for PositionViewEntry<V>where
V: Clone,
impl<V> Clone for PositionViewEntry<V>where
V: Clone,
Source§fn clone(&self) -> PositionViewEntry<V>
fn clone(&self) -> PositionViewEntry<V>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<V> Freeze for PositionViewEntry<V>where
V: Freeze,
impl<V> RefUnwindSafe for PositionViewEntry<V>where
V: RefUnwindSafe,
impl<V> Send for PositionViewEntry<V>where
V: Send,
impl<V> Sync for PositionViewEntry<V>where
V: Sync,
impl<V> Unpin for PositionViewEntry<V>where
V: Unpin,
impl<V> UnsafeUnpin for PositionViewEntry<V>where
V: UnsafeUnpin,
impl<V> UnwindSafe for PositionViewEntry<V>where
V: UnwindSafe,
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more