pub struct MinimalNetwork {
pub certifications: Vec<Certification>,
pub delegations: Vec<Delegation>,
}Expand description
A minimalistic representation of a network
This is effectively a Network, but as a single combined vector instead of a HashMap over
vectors. This is used to allow specification of test networks in a format that’s easier to read
for humans.
Fields§
§certifications: Vec<Certification>§delegations: Vec<Delegation>Trait Implementations§
Source§impl Clone for MinimalNetwork
impl Clone for MinimalNetwork
Source§fn clone(&self) -> MinimalNetwork
fn clone(&self) -> MinimalNetwork
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 MinimalNetwork
impl Debug for MinimalNetwork
Source§impl From<MinimalNetwork> for Network
impl From<MinimalNetwork> for Network
Source§fn from(minimal_network: MinimalNetwork) -> Self
fn from(minimal_network: MinimalNetwork) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MinimalNetwork
impl RefUnwindSafe for MinimalNetwork
impl Send for MinimalNetwork
impl Sync for MinimalNetwork
impl Unpin for MinimalNetwork
impl UnwindSafe for MinimalNetwork
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