pub struct PricingModel(/* private fields */);Implementations§
Source§impl PricingModel
impl PricingModel
Sourcepub const fn from_underlying(value: u8) -> PricingModel
pub const fn from_underlying(value: u8) -> PricingModel
Convert from the underlying value type.
Sourcepub const fn into_underlying(self) -> u8
pub const fn into_underlying(self) -> u8
Return the underlying value.
Sourcepub fn abi_encode(&self) -> Vec<u8> ⓘ
pub fn abi_encode(&self) -> Vec<u8> ⓘ
Return the single encoding of this value, delegating to the underlying type.
Sourcepub fn abi_encode_packed(&self) -> Vec<u8> ⓘ
pub fn abi_encode_packed(&self) -> Vec<u8> ⓘ
Return the packed encoding of this value, delegating to the underlying type.
Trait Implementations§
Source§impl Clone for PricingModel
impl Clone for PricingModel
Source§fn clone(&self) -> PricingModel
fn clone(&self) -> PricingModel
Returns a duplicate 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 PricingModel
impl Debug for PricingModel
Source§impl Default for PricingModel
impl Default for PricingModel
Source§fn default() -> PricingModel
fn default() -> PricingModel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PricingModel
impl<'de> Deserialize<'de> for PricingModel
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PricingModel, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PricingModel, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl EventTopic for PricingModel
impl EventTopic for PricingModel
Source§fn topic_preimage_length(rust: &<PricingModel as SolType>::RustType) -> usize
fn topic_preimage_length(rust: &<PricingModel as SolType>::RustType) -> usize
The number of bytes this type occupies in another topic’s preimage,
usually a multiple of 32. Read more
Source§fn encode_topic_preimage(
rust: &<PricingModel as SolType>::RustType,
out: &mut Vec<u8>,
)
fn encode_topic_preimage( rust: &<PricingModel as SolType>::RustType, out: &mut Vec<u8>, )
Encodes this type as preimage bytes which are then hashed in
complex types’
encode_topic. Read moreSource§fn encode_topic(rust: &<PricingModel as SolType>::RustType) -> WordToken
fn encode_topic(rust: &<PricingModel as SolType>::RustType) -> WordToken
Indexed event parameter encoding. Read more
Source§impl From<PricingModel> for PricingModel
impl From<PricingModel> for PricingModel
Source§fn from(model: PricingModel) -> Self
fn from(model: PricingModel) -> Self
Converts to this type from the input type.
Source§impl From<u8> for PricingModel
impl From<u8> for PricingModel
Source§fn from(value: u8) -> PricingModel
fn from(value: u8) -> PricingModel
Converts to this type from the input type.
Source§impl Hash for PricingModel
impl Hash for PricingModel
Source§impl PartialEq for PricingModel
impl PartialEq for PricingModel
Source§impl Serialize for PricingModel
impl Serialize for PricingModel
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl SolType for PricingModel
impl SolType for PricingModel
Source§const ENCODED_SIZE: Option<usize> = <alloy::sol_types::sol_data::Uint<8> as
alloy_sol_types::SolType>::ENCODED_SIZE
const ENCODED_SIZE: Option<usize> = <alloy::sol_types::sol_data::Uint<8> as alloy_sol_types::SolType>::ENCODED_SIZE
The statically-known ABI-encoded size of the type. Read more
Source§const PACKED_ENCODED_SIZE: Option<usize> = <alloy::sol_types::sol_data::Uint<8> as
alloy_sol_types::SolType>::PACKED_ENCODED_SIZE
const PACKED_ENCODED_SIZE: Option<usize> = <alloy::sol_types::sol_data::Uint<8> as alloy_sol_types::SolType>::PACKED_ENCODED_SIZE
The statically-known Non-standard Packed Mode ABI-encoded size of the type. Read more
Source§fn valid_token(token: &<PricingModel as SolType>::Token<'_>) -> bool
fn valid_token(token: &<PricingModel as SolType>::Token<'_>) -> bool
Returns
true if the given token can be detokenized with this type.Source§fn type_check(token: &<PricingModel as SolType>::Token<'_>) -> Result<(), Error>
fn type_check(token: &<PricingModel as SolType>::Token<'_>) -> Result<(), Error>
Returns an error if the given token cannot be detokenized with this
type.
Source§fn detokenize(
token: <PricingModel as SolType>::Token<'_>,
) -> <PricingModel as SolType>::RustType
fn detokenize( token: <PricingModel as SolType>::Token<'_>, ) -> <PricingModel as SolType>::RustType
Detokenize this type’s value from the given token. Read more
Source§fn abi_encoded_size<E>(rust: &E) -> usizewhere
E: SolTypeValue<Self> + ?Sized,
fn abi_encoded_size<E>(rust: &E) -> usizewhere
E: SolTypeValue<Self> + ?Sized,
Calculate the ABI-encoded size of the data, counting both head and tail
words. For a single-word type this will always be 32.
Source§fn tokenize<E>(rust: &E) -> Self::Token<'_>where
E: SolTypeValue<Self> + ?Sized,
fn tokenize<E>(rust: &E) -> Self::Token<'_>where
E: SolTypeValue<Self> + ?Sized,
Tokenizes the given value into this type’s token. Read more
Source§fn eip712_data_word<E>(rust: &E) -> FixedBytes<32>where
E: SolTypeValue<Self> + ?Sized,
fn eip712_data_word<E>(rust: &E) -> FixedBytes<32>where
E: SolTypeValue<Self> + ?Sized,
Encode this data according to EIP-712
encodeData rules, and hash it
if necessary. Read moreSource§fn abi_packed_encoded_size<E>(rust: &E) -> usizewhere
E: SolTypeValue<Self> + ?Sized,
fn abi_packed_encoded_size<E>(rust: &E) -> usizewhere
E: SolTypeValue<Self> + ?Sized,
Returns the length of this value when ABI-encoded in Non-standard Packed Mode. Read more
Source§fn abi_encode_packed_to<E>(rust: &E, out: &mut Vec<u8>)where
E: SolTypeValue<Self> + ?Sized,
fn abi_encode_packed_to<E>(rust: &E, out: &mut Vec<u8>)where
E: SolTypeValue<Self> + ?Sized,
Non-standard Packed Mode ABI encoding. Read more
Source§fn abi_encode_packed<E>(rust: &E) -> Vec<u8> ⓘwhere
E: SolTypeValue<Self> + ?Sized,
fn abi_encode_packed<E>(rust: &E) -> Vec<u8> ⓘwhere
E: SolTypeValue<Self> + ?Sized,
Non-standard Packed Mode ABI encoding. Read more
Source§fn abi_encode<E>(rust: &E) -> Vec<u8> ⓘwhere
E: SolTypeValue<Self> + ?Sized,
fn abi_encode<E>(rust: &E) -> Vec<u8> ⓘwhere
E: SolTypeValue<Self> + ?Sized,
Tokenizes and ABI-encodes the given value by wrapping it in a
single-element sequence. Read more
Source§fn abi_encode_params<E>(rust: &E) -> Vec<u8> ⓘ
fn abi_encode_params<E>(rust: &E) -> Vec<u8> ⓘ
Tokenizes and ABI-encodes the given value as function parameters. Read more
Source§fn abi_encode_sequence<E>(rust: &E) -> Vec<u8> ⓘ
fn abi_encode_sequence<E>(rust: &E) -> Vec<u8> ⓘ
Tokenizes and ABI-encodes the given value as a sequence. Read more
Source§fn abi_decode(data: &[u8]) -> Result<Self::RustType, Error>
fn abi_decode(data: &[u8]) -> Result<Self::RustType, Error>
Decodes this type’s value from an ABI blob by interpreting it as a
single-element sequence. Read more
Source§fn abi_decode_validate(data: &[u8]) -> Result<Self::RustType, Error>
fn abi_decode_validate(data: &[u8]) -> Result<Self::RustType, Error>
Decodes this type’s value from an ABI blob by interpreting it as
single-element sequence, with validation. Read more
Source§fn abi_decode_params<'de>(data: &'de [u8]) -> Result<Self::RustType, Error>
fn abi_decode_params<'de>(data: &'de [u8]) -> Result<Self::RustType, Error>
Decodes this type’s value from an ABI blob by interpreting it as
function parameters. Read more
Source§fn abi_decode_params_validate<'de>(
data: &'de [u8],
) -> Result<Self::RustType, Error>
fn abi_decode_params_validate<'de>( data: &'de [u8], ) -> Result<Self::RustType, Error>
Decodes this type’s value from an ABI blob by interpreting it as
function parameters, with validation. Read more
impl Eq for PricingModel
impl StructuralPartialEq for PricingModel
Auto Trait Implementations§
impl Freeze for PricingModel
impl RefUnwindSafe for PricingModel
impl Send for PricingModel
impl Sync for PricingModel
impl Unpin for PricingModel
impl UnsafeUnpin for PricingModel
impl UnwindSafe for PricingModel
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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