Struct bee_block::output::ByteCostConfig
source · [−]pub struct ByteCostConfig {
pub v_byte_cost: u64,
pub v_byte_factor_key: u64,
pub v_byte_factor_data: u64,
/* private fields */
}Expand description
Specifies the current parameters for the byte cost computation.
Fields
v_byte_cost: u64Cost in tokens per virtual byte.
v_byte_factor_key: u64The weight factor used for key fields in the ouputs.
v_byte_factor_data: u64The weight factor used for data fields in the ouputs.
Implementations
sourceimpl ByteCostConfig
impl ByteCostConfig
sourcepub fn build() -> ByteCostConfigBuilder
pub fn build() -> ByteCostConfigBuilder
Returns a builder for this config.
Trait Implementations
sourceimpl Clone for ByteCostConfig
impl Clone for ByteCostConfig
sourcefn clone(&self) -> ByteCostConfig
fn clone(&self) -> ByteCostConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ByteCostConfig
impl Debug for ByteCostConfig
sourceimpl<'de> Deserialize<'de> for ByteCostConfig
impl<'de> Deserialize<'de> for ByteCostConfig
sourcefn 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
sourceimpl PartialEq<ByteCostConfig> for ByteCostConfig
impl PartialEq<ByteCostConfig> for ByteCostConfig
sourcefn eq(&self, other: &ByteCostConfig) -> bool
fn eq(&self, other: &ByteCostConfig) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &ByteCostConfig) -> bool
fn ne(&self, other: &ByteCostConfig) -> bool
This method tests for !=.
sourceimpl Serialize for ByteCostConfig
impl Serialize for ByteCostConfig
impl Eq for ByteCostConfig
impl StructuralEq for ByteCostConfig
impl StructuralPartialEq for ByteCostConfig
Auto Trait Implementations
impl RefUnwindSafe for ByteCostConfig
impl Send for ByteCostConfig
impl Sync for ByteCostConfig
impl Unpin for ByteCostConfig
impl UnwindSafe for ByteCostConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more