Struct cardano_serialization_lib::plutus::Costmdls
source · pub struct Costmdls(_);
Implementations§
source§impl Costmdls
impl Costmdls
pub fn from_bytes(bytes: Vec<u8>) -> Result<Costmdls, DeserializeError>
source§impl Costmdls
impl Costmdls
pub fn new() -> Self
pub fn len(&self) -> usize
pub fn insert(&mut self, key: &Language, value: &CostModel) -> Option<CostModel>
pub fn get(&self, key: &Language) -> Option<CostModel>
pub fn keys(&self) -> Languages
pub fn retain_language_versions(&self, languages: &Languages) -> Costmdls
Trait Implementations§
source§impl<'de> Deserialize<'de> for Costmdls
impl<'de> Deserialize<'de> for Costmdls
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 Deserialize for Costmdls
impl Deserialize for Costmdls
fn deserialize<R: BufRead + Seek>(
raw: &mut Deserializer<R>
) -> Result<Self, DeserializeError>
source§impl JsonSchema for Costmdls
impl JsonSchema for Costmdls
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl Ord for Costmdls
impl Ord for Costmdls
source§impl PartialOrd<Costmdls> for Costmdls
impl PartialOrd<Costmdls> for Costmdls
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more