Struct orao_solana_vrf::InitBuilder
source · pub struct InitBuilder { /* private fields */ }
Expand description
init_network
instruction builder.
Implementations§
source§impl InitBuilder
impl InitBuilder
sourcepub fn new(
config_authority: Pubkey,
fee: u64,
treasury: Pubkey,
fulfillment_authorities: Vec<Pubkey>
) -> Self
pub fn new( config_authority: Pubkey, fee: u64, treasury: Pubkey, fulfillment_authorities: Vec<Pubkey> ) -> Self
Creates a new builder.
sourcepub fn with_token_fee_config(self, token_fee_config: OraoTokenFeeConfig) -> Self
pub fn with_token_fee_config(self, token_fee_config: OraoTokenFeeConfig) -> Self
Change token fee configuration.
sourcepub fn build<C: Deref<Target = impl Signer> + Clone>(
self,
orao_vrf: &Program<C>
) -> Result<RequestBuilder<'_, C>, ClientError>
pub fn build<C: Deref<Target = impl Signer> + Clone>( self, orao_vrf: &Program<C> ) -> Result<RequestBuilder<'_, C>, ClientError>
Builds the request.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for InitBuilder
impl Send for InitBuilder
impl Sync for InitBuilder
impl Unpin for InitBuilder
impl UnwindSafe for InitBuilder
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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