pub struct TransactionFeeSchedule {
pub request_type: RequestType,
pub fee_data: Option<Box<FeeData>>,
pub fees: Vec<FeeData>,
}
Expand description
The fees for a specific transaction or query based on the fee data.
See the Hiero documentation.
Fields§
§request_type: RequestType
The request type that this fee schedule applies to.
fee_data: Option<Box<FeeData>>
👎Deprecated
Resource price coefficients.
fees: Vec<FeeData>
Resource price coefficients.
Supports subtype definition.
Implementations§
Source§impl TransactionFeeSchedule
impl TransactionFeeSchedule
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self>
pub fn from_bytes(bytes: &[u8]) -> Result<Self>
Create a new TransactionFeeSchedule
from protobuf-encoded bytes
.
§Errors
Error::FromProtobuf
if decoding the bytes fails to produce a valid protobuf.Error::FromProtobuf
if decoding the protobuf fails.
Trait Implementations§
Source§impl Clone for TransactionFeeSchedule
impl Clone for TransactionFeeSchedule
Source§fn clone(&self) -> TransactionFeeSchedule
fn clone(&self) -> TransactionFeeSchedule
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 TransactionFeeSchedule
impl Debug for TransactionFeeSchedule
Source§impl PartialEq for TransactionFeeSchedule
impl PartialEq for TransactionFeeSchedule
impl Eq for TransactionFeeSchedule
impl StructuralPartialEq for TransactionFeeSchedule
Auto Trait Implementations§
impl Freeze for TransactionFeeSchedule
impl RefUnwindSafe for TransactionFeeSchedule
impl Send for TransactionFeeSchedule
impl Sync for TransactionFeeSchedule
impl Unpin for TransactionFeeSchedule
impl UnwindSafe for TransactionFeeSchedule
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