pub struct UsageCostDetails {
pub writable_accounts: Vec<Pubkey>,
pub signature_cost: u64,
pub write_lock_cost: u64,
pub data_bytes_cost: u64,
pub builtins_execution_cost: u64,
pub bpf_execution_cost: u64,
pub loaded_accounts_data_size_cost: u64,
pub account_data_size: u64,
pub num_transaction_signatures: u64,
pub num_secp256k1_instruction_signatures: u64,
pub num_ed25519_instruction_signatures: u64,
}
Fields§
§writable_accounts: Vec<Pubkey>
§signature_cost: u64
§write_lock_cost: u64
§data_bytes_cost: u64
§builtins_execution_cost: u64
§bpf_execution_cost: u64
§loaded_accounts_data_size_cost: u64
§account_data_size: u64
§num_transaction_signatures: u64
§num_secp256k1_instruction_signatures: u64
§num_ed25519_instruction_signatures: u64
Implementations§
source§impl UsageCostDetails
impl UsageCostDetails
pub fn new_with_default_capacity() -> Self
pub fn sum(&self) -> u64
Trait Implementations§
source§impl Debug for UsageCostDetails
impl Debug for UsageCostDetails
Auto Trait Implementations§
impl Freeze for UsageCostDetails
impl RefUnwindSafe for UsageCostDetails
impl Send for UsageCostDetails
impl Sync for UsageCostDetails
impl Unpin for UsageCostDetails
impl UnwindSafe for UsageCostDetails
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> 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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more