pub enum Network {
Mainnet,
Testnet,
Custom(String),
}Expand description
Known network environments.
Use with the Client builder to connect to a known network by name, or provide a custom URL.
§Example
ⓘ
use bullet_rust_sdk::{Client, Network};
// Known network
let client = Client::builder().network(Network::Testnet).build().await?;
// Custom URL (auto-converts via From<&str>)
let client = Client::builder().network("https://custom.example.com").build().await?;Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Network
impl RefUnwindSafe for Network
impl Send for Network
impl Sync for Network
impl Unpin for Network
impl UnsafeUnpin for Network
impl UnwindSafe for Network
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