pub struct StakePoolBuilder {
owners: Vec<PublicKey<Ed25519>>,
operators: Vec<PublicKey<Ed25519>>,
pool_permissions: Option<PoolPermissions>,
reward_account: bool,
tax_type: TaxType,
alias: String,
}
Fields§
§owners: Vec<PublicKey<Ed25519>>
§operators: Vec<PublicKey<Ed25519>>
§pool_permissions: Option<PoolPermissions>
§reward_account: bool
§tax_type: TaxType
§alias: String
Implementations§
source§impl StakePoolBuilder
impl StakePoolBuilder
pub fn new() -> Self
pub fn with_owners(&mut self, owners: Vec<PublicKey<Ed25519>>) -> &mut Self
pub fn with_alias(&mut self, alias: &str) -> &mut Self
pub fn with_operators( &mut self, operators: Vec<PublicKey<Ed25519>> ) -> &mut Self
pub fn with_pool_permissions( &mut self, permissions: PoolPermissions ) -> &mut Self
pub fn with_reward_account(&mut self, reward_account: bool) -> &mut Self
pub fn with_ratio_tax_type( &mut self, numerator: u64, denominator: u64, max_limit: Option<u64> ) -> &mut Self
pub fn with_tax_type(&mut self, tax_type: TaxType) -> &mut Self
pub fn build(&self) -> StakePool
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for StakePoolBuilder
impl Send for StakePoolBuilder
impl Sync for StakePoolBuilder
impl Unpin for StakePoolBuilder
impl UnwindSafe for StakePoolBuilder
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