pub struct Treasury {
pub address: Address,
pub balance: u128,
pub allocated_grants: u128,
pub spent_development: u128,
pub spent_marketing: u128,
pub reserved: u128,
pub parameters: TreasuryParameters,
}Expand description
Treasury management
Fields§
§address: AddressTreasury address
balance: u128Current balance (in smallest unit)
allocated_grants: u128Total allocated to grants
spent_development: u128Total spent on development
spent_marketing: u128Total spent on marketing
reserved: u128Reserved for future use
parameters: TreasuryParametersTreasury parameters
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Treasury
impl<'de> Deserialize<'de> for Treasury
Source§fn 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
impl Eq for Treasury
impl StructuralPartialEq for Treasury
Auto Trait Implementations§
impl Freeze for Treasury
impl RefUnwindSafe for Treasury
impl Send for Treasury
impl Sync for Treasury
impl Unpin for Treasury
impl UnsafeUnpin for Treasury
impl UnwindSafe for Treasury
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