Struct tx_indexer::database::plutus::AssetQuantity
source · pub struct AssetQuantity { /* private fields */ }
Expand description
AssetQuantity
Trait Implementations§
source§impl Clone for AssetQuantity
impl Clone for AssetQuantity
source§fn clone(&self) -> AssetQuantity
fn clone(&self) -> AssetQuantity
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AssetQuantity
impl Debug for AssetQuantity
source§impl<'r> Decode<'r, Postgres> for AssetQuantity
impl<'r> Decode<'r, Postgres> for AssetQuantity
source§impl<'q> Encode<'_, Postgres> for AssetQuantity
impl<'q> Encode<'_, Postgres> for AssetQuantity
source§fn encode_by_ref(
&self,
buf: &mut PgArgumentBuffer
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut PgArgumentBuffer ) -> Result<IsNull, BoxDynError>
fn size_hint(&self) -> usize
§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
source§impl From<AssetQuantity> for (CurrencySymbol, TokenName, BigInt)
impl From<AssetQuantity> for (CurrencySymbol, TokenName, BigInt)
source§fn from(item: AssetQuantity) -> Self
fn from(item: AssetQuantity) -> Self
Converts to this type from the input type.
source§impl PartialEq for AssetQuantity
impl PartialEq for AssetQuantity
source§fn eq(&self, other: &AssetQuantity) -> bool
fn eq(&self, other: &AssetQuantity) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PgHasArrayType for AssetQuantity
impl PgHasArrayType for AssetQuantity
fn array_type_info() -> PgTypeInfo
fn array_compatible(ty: &PgTypeInfo) -> bool
source§impl TryFrom<(CurrencySymbol, TokenName, BigInt)> for AssetQuantity
impl TryFrom<(CurrencySymbol, TokenName, BigInt)> for AssetQuantity
source§impl Type<Postgres> for AssetQuantity
impl Type<Postgres> for AssetQuantity
impl Eq for AssetQuantity
impl StructuralPartialEq for AssetQuantity
Auto Trait Implementations§
impl Freeze for AssetQuantity
impl RefUnwindSafe for AssetQuantity
impl Send for AssetQuantity
impl Sync for AssetQuantity
impl Unpin for AssetQuantity
impl UnwindSafe for AssetQuantity
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 moresource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request