pub enum Network {
Testnet,
Mainnet,
Devnet,
Custom(String),
}Variants§
Implementations§
Source§impl Network
impl Network
pub fn from_name(name: String) -> Self
pub fn get_gateway(&self) -> String
pub fn faucet_url(&self) -> Result<String, Box<dyn Error>>
pub fn to_string(&self) -> String
pub fn object_link(&self, object_id: &String) -> String
pub fn transaction_link(&self, digest: &String) -> String
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 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