Struct narwhal_config::Authority
source · [−]pub struct Authority {
pub stake: Stake,
pub primary_address: Multiaddr,
pub network_key: NetworkPublicKey,
}
Fields
stake: Stake
The voting power of this authority.
primary_address: Multiaddr
The network address of the primary.
network_key: NetworkPublicKey
Network key of the primary.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Authority
impl<'de> Deserialize<'de> for Authority
sourcefn 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
impl Eq for Authority
impl StructuralEq for Authority
impl StructuralPartialEq for Authority
Auto Trait Implementations
impl RefUnwindSafe for Authority
impl Send for Authority
impl Sync for Authority
impl Unpin for Authority
impl UnwindSafe for Authority
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more