Struct primitives::account::SponsorInfo
source · pub struct SponsorInfo {
pub sponsor_for_gas: Address,
pub sponsor_for_collateral: Address,
pub sponsor_gas_bound: U256,
pub sponsor_balance_for_gas: U256,
pub sponsor_balance_for_collateral: U256,
pub storage_points: Option<StoragePoints>,
}
Fields§
§sponsor_for_gas: Address
This is the address of the sponsor for gas cost of the contract.
sponsor_for_collateral: Address
This is the address of the sponsor for collateral of the contract.
sponsor_gas_bound: U256
This is the upper bound of sponsor gas cost per tx.
sponsor_balance_for_gas: U256
This is the amount of tokens sponsor for gas cost to the contract.
sponsor_balance_for_collateral: U256
This is the amount of tokens sponsor for collateral to the contract.
storage_points: Option<StoragePoints>
This is the storage point introduced in CIP-107
Implementations§
source§impl SponsorInfo
impl SponsorInfo
pub fn unused_storage_points(&self) -> U256
Trait Implementations§
source§impl Clone for SponsorInfo
impl Clone for SponsorInfo
source§fn clone(&self) -> SponsorInfo
fn clone(&self) -> SponsorInfo
Returns a copy 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 SponsorInfo
impl Debug for SponsorInfo
source§impl Decodable for SponsorInfo
impl Decodable for SponsorInfo
source§impl Default for SponsorInfo
impl Default for SponsorInfo
source§fn default() -> SponsorInfo
fn default() -> SponsorInfo
Returns the “default value” for a type. Read more
source§impl Encodable for SponsorInfo
impl Encodable for SponsorInfo
source§impl Ord for SponsorInfo
impl Ord for SponsorInfo
source§fn cmp(&self, other: &SponsorInfo) -> Ordering
fn cmp(&self, other: &SponsorInfo) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for SponsorInfo
impl PartialEq for SponsorInfo
source§fn eq(&self, other: &SponsorInfo) -> bool
fn eq(&self, other: &SponsorInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SponsorInfo
impl PartialOrd for SponsorInfo
source§fn partial_cmp(&self, other: &SponsorInfo) -> Option<Ordering>
fn partial_cmp(&self, other: &SponsorInfo) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for SponsorInfo
impl StructuralPartialEq for SponsorInfo
Auto Trait Implementations§
impl RefUnwindSafe for SponsorInfo
impl Send for SponsorInfo
impl Sync for SponsorInfo
impl Unpin for SponsorInfo
impl UnwindSafe for SponsorInfo
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