pub struct MeshCredentials {
pub mesh_id: String,
pub mesh_name: String,
pub encryption_secret: [u8; 32],
pub creator_public_key: [u8; 32],
pub policy: MembershipPolicy,
}Expand description
Shareable mesh credentials (without creator’s private key)
This can be shared with nodes joining the mesh.
Fields§
§mesh_id: StringThe mesh_id (derived, for verification)
mesh_name: StringMesh name
encryption_secret: [u8; 32]Encryption secret for mesh-wide encryption
creator_public_key: [u8; 32]Creator’s public key (for verification)
policy: MembershipPolicyMembership policy
Implementations§
Source§impl MeshCredentials
impl MeshCredentials
Sourcepub fn from_genesis(genesis: &MeshGenesis) -> Self
pub fn from_genesis(genesis: &MeshGenesis) -> Self
Create credentials from genesis data
Trait Implementations§
Source§impl Clone for MeshCredentials
impl Clone for MeshCredentials
Source§fn clone(&self) -> MeshCredentials
fn clone(&self) -> MeshCredentials
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 moreAuto Trait Implementations§
impl Freeze for MeshCredentials
impl RefUnwindSafe for MeshCredentials
impl Send for MeshCredentials
impl Sync for MeshCredentials
impl Unpin for MeshCredentials
impl UnwindSafe for MeshCredentials
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