pub struct JitoConfig {
pub network: Network,
pub rpc_url: String,
pub helius_rpc_url: Option<String>,
pub uuid: Option<String>,
pub tip_strategy: TipStrategy,
pub confirm_policy: ConfirmPolicy,
pub jitodontfront_pubkey: Option<Pubkey>,
pub compute_unit_limit: u32,
}Fields§
§network: Network§rpc_url: String§helius_rpc_url: Option<String>§uuid: Option<String>§tip_strategy: TipStrategy§confirm_policy: ConfirmPolicy§jitodontfront_pubkey: Option<Pubkey>§compute_unit_limit: u32Implementations§
Source§impl JitoConfig
impl JitoConfig
pub fn new(rpc_url: impl Into<String>) -> Self
pub fn with_network(self, network: Network) -> Self
pub fn with_helius_rpc_url(self, url: impl Into<String>) -> Self
pub fn with_uuid(self, uuid: impl Into<String>) -> Self
pub fn with_tip_strategy(self, strategy: TipStrategy) -> Self
pub fn with_confirm_policy(self, policy: ConfirmPolicy) -> Self
pub fn with_jitodontfront(self, pubkey: Pubkey) -> Self
pub fn with_compute_unit_limit(self, limit: u32) -> Self
Trait Implementations§
Source§impl Clone for JitoConfig
impl Clone for JitoConfig
Source§fn clone(&self) -> JitoConfig
fn clone(&self) -> JitoConfig
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for JitoConfig
impl RefUnwindSafe for JitoConfig
impl Send for JitoConfig
impl Sync for JitoConfig
impl Unpin for JitoConfig
impl UnwindSafe for JitoConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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