pub struct Cost {
pub matrix: Vec<Vec<u64>>,
pub c_max: u64,
pub unit: Option<String>,
}Expand description
A v1.4 selective_cost certificate’s costs: matrix[label][answered option], in the options’
order, whole numbers in the consumer’s unit (informational), and its largest entry c_max.
Fields§
§matrix: Vec<Vec<u64>>§c_max: u64§unit: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cost
impl<'de> Deserialize<'de> for Cost
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
impl StructuralPartialEq for Cost
Auto Trait Implementations§
impl Forget for Cost
impl Freeze for Cost
impl Move for Cost
impl RefUnwindSafe for Cost
impl Send for Costwhere
RawVecInner: Send,
impl Sync for Costwhere
RawVecInner: Sync,
impl Unpin for Cost
impl UnsafeUnpin for Costwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Vec<u64>>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for Costwhere
RawVecInner: 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