pub struct SetValidatorEmissionRate {
pub minor_units_per_emission: u64,
pub block_quota: u32,
}
Fields§
§minor_units_per_emission: u64
Amount paid, in minor units, per “emission period” (number of blocks defined below)
block_quota: u32
Interval (number of blocks produced) between each payout
Implementations§
Source§impl SetValidatorEmissionRate
impl SetValidatorEmissionRate
pub fn new( minor_units_per_emission: u64, block_quota: u32, ) -> SetValidatorEmissionRate
Trait Implementations§
Source§impl Clone for SetValidatorEmissionRate
impl Clone for SetValidatorEmissionRate
Source§fn clone(&self) -> SetValidatorEmissionRate
fn clone(&self) -> SetValidatorEmissionRate
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SetValidatorEmissionRate
impl Debug for SetValidatorEmissionRate
Source§impl<'de> Deserialize<'de> for SetValidatorEmissionRate
impl<'de> Deserialize<'de> for SetValidatorEmissionRate
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SetValidatorEmissionRate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SetValidatorEmissionRate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<SetValidatorEmissionRate> for SetValidatorEmissionRate
impl From<SetValidatorEmissionRate> for SetValidatorEmissionRate
Source§fn from(x: SetValidatorEmissionRate) -> SetValidatorEmissionRate
fn from(x: SetValidatorEmissionRate) -> SetValidatorEmissionRate
Converts to this type from the input type.
Source§impl Hash for SetValidatorEmissionRate
impl Hash for SetValidatorEmissionRate
Source§impl PartialEq for SetValidatorEmissionRate
impl PartialEq for SetValidatorEmissionRate
Source§fn eq(&self, other: &SetValidatorEmissionRate) -> bool
fn eq(&self, other: &SetValidatorEmissionRate) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl Serialize for SetValidatorEmissionRate
impl Serialize for SetValidatorEmissionRate
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
impl Eq for SetValidatorEmissionRate
impl StructuralPartialEq for SetValidatorEmissionRate
Auto Trait Implementations§
impl Freeze for SetValidatorEmissionRate
impl RefUnwindSafe for SetValidatorEmissionRate
impl Send for SetValidatorEmissionRate
impl Sync for SetValidatorEmissionRate
impl Unpin for SetValidatorEmissionRate
impl UnwindSafe for SetValidatorEmissionRate
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<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<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> 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