pub struct WitnessConfig {
pub dt: String,
pub iurls: Vec<String>,
pub witnesses: HashMap<String, WitnessNetworkConfig>,
}Fields§
§dt: StringKept as the original string: it stamps signed replies, so it must not be re-formatted.
iurls: Vec<String>§witnesses: HashMap<String, WitnessNetworkConfig>Implementations§
Source§impl WitnessConfig
impl WitnessConfig
pub fn load(path: &Path, witness_name: &str) -> Result<Self>
pub fn get_witness_config( &self, witness_name: &str, ) -> Option<&WitnessNetworkConfig>
Trait Implementations§
Source§impl Clone for WitnessConfig
impl Clone for WitnessConfig
Source§fn clone(&self) -> WitnessConfig
fn clone(&self) -> WitnessConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WitnessConfig
impl Debug for WitnessConfig
Source§impl<'de> Deserialize<'de> for WitnessConfig
impl<'de> Deserialize<'de> for WitnessConfig
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
Auto Trait Implementations§
impl Freeze for WitnessConfig
impl RefUnwindSafe for WitnessConfig
impl Send for WitnessConfig
impl Sync for WitnessConfig
impl Unpin for WitnessConfig
impl UnsafeUnpin for WitnessConfig
impl UnwindSafe for WitnessConfig
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