pub struct BlockchainOnchain {
pub protocol: String,
pub chain_id: Option<String>,
pub test: bool,
pub signing_algo: SigningAlgo,
}
Fields§
§protocol: String
The protocol of the blockchain
chain_id: Option<String>
Network/chain ID
test: bool
Is test blockchain
signing_algo: SigningAlgo
Signing alghorithm
Implementations§
Source§impl BlockchainOnchain
impl BlockchainOnchain
pub fn new( protocol: String, test: bool, signing_algo: SigningAlgo, ) -> BlockchainOnchain
Trait Implementations§
Source§impl Clone for BlockchainOnchain
impl Clone for BlockchainOnchain
Source§fn clone(&self) -> BlockchainOnchain
fn clone(&self) -> BlockchainOnchain
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 moreSource§impl Debug for BlockchainOnchain
impl Debug for BlockchainOnchain
Source§impl Default for BlockchainOnchain
impl Default for BlockchainOnchain
Source§fn default() -> BlockchainOnchain
fn default() -> BlockchainOnchain
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BlockchainOnchain
impl<'de> Deserialize<'de> for BlockchainOnchain
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BlockchainOnchain
impl PartialEq for BlockchainOnchain
Source§impl Serialize for BlockchainOnchain
impl Serialize for BlockchainOnchain
impl StructuralPartialEq for BlockchainOnchain
Auto Trait Implementations§
impl Freeze for BlockchainOnchain
impl RefUnwindSafe for BlockchainOnchain
impl Send for BlockchainOnchain
impl Sync for BlockchainOnchain
impl Unpin for BlockchainOnchain
impl UnwindSafe for BlockchainOnchain
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