pub struct SparkConfig<K: Clone + Eq + Hash + Ord + FromStr + ToString>{ /* private fields */ }Expand description
Spark configuration.
Implementations§
Source§impl<K: Clone + Eq + Hash + Ord + FromStr + ToString> SparkConfig<K>
impl<K: Clone + Eq + Hash + Ord + FromStr + ToString> SparkConfig<K>
Sourcepub fn operators(&self) -> &Vec<SparkOperatorConfig>
pub fn operators(&self) -> &Vec<SparkOperatorConfig>
Get Spark operators.
Sourcepub fn bitcoin_network(&self) -> BitcoinNetwork
pub fn bitcoin_network(&self) -> BitcoinNetwork
Get Bitcoin network.
Sourcepub fn mempool_base_url(&self) -> Option<&str>
pub fn mempool_base_url(&self) -> Option<&str>
Get Mempool base URL.
Sourcepub fn mempool_username(&self) -> Option<&str>
pub fn mempool_username(&self) -> Option<&str>
Get Mempool username.
Sourcepub fn mempool_password(&self) -> Option<&str>
pub fn mempool_password(&self) -> Option<&str>
Get Mempool password.
Sourcepub fn mempool_auth(&self) -> Option<(&str, &str)>
pub fn mempool_auth(&self) -> Option<(&str, &str)>
Get Mempool authentication.
Sourcepub fn electrs_base_url(&self) -> Option<&str>
pub fn electrs_base_url(&self) -> Option<&str>
Get Electrs base URL.
Sourcepub fn electrs_auth(&self) -> Option<(&str, &str)>
pub fn electrs_auth(&self) -> Option<(&str, &str)>
Get Electrs authentication.
Sourcepub fn bitcoin_base_url(&self) -> Option<&str>
pub fn bitcoin_base_url(&self) -> Option<&str>
Get Bitcoin base URL (alias for electrs_base_url).
Sourcepub fn lrc20_node_url(&self) -> Option<&str>
pub fn lrc20_node_url(&self) -> Option<&str>
Get LRC20 Node base URL.
Sourcepub fn ssp_endpoint(&self, key: &K) -> Option<Url>
pub fn ssp_endpoint(&self, key: &K) -> Option<Url>
Returns the endpoint for the SSP for the given key.
Sourcepub fn coordinator_operator(&self) -> Option<&SparkOperatorConfig>
pub fn coordinator_operator(&self) -> Option<&SparkOperatorConfig>
Returns the coordinator operator config, if one is designated.
Auto Trait Implementations§
impl<K> Freeze for SparkConfig<K>
impl<K> RefUnwindSafe for SparkConfig<K>where
K: RefUnwindSafe,
impl<K> Send for SparkConfig<K>where
K: Send,
impl<K> Sync for SparkConfig<K>where
K: Sync,
impl<K> Unpin for SparkConfig<K>
impl<K> UnwindSafe for SparkConfig<K>where
K: RefUnwindSafe,
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