Struct kipa_lib::Key [−][src]
pub struct Key { /* fields omitted */ }
The key data belonging to a node
Methods
impl Key
[src]
impl Key
pub fn new(key_id: String, data: Vec<u8>) -> Self
[src]
pub fn new(key_id: String, data: Vec<u8>) -> Self
pub fn get_data(&self) -> &Vec<u8>
[src]
pub fn get_data(&self) -> &Vec<u8>
pub fn get_key_id(&self) -> &String
[src]
pub fn get_key_id(&self) -> &String
Trait Implementations
impl Clone for Key
[src]
impl Clone for Key
fn clone(&self) -> Key
[src]
fn clone(&self) -> Key
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Eq for Key
[src]
impl Eq for Key
impl PartialEq for Key
[src]
impl PartialEq for Key
fn eq(&self, other: &Key) -> bool
[src]
fn eq(&self, other: &Key) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Key) -> bool
[src]
fn ne(&self, other: &Key) -> bool
This method tests for !=
.
impl Hash for Key
[src]
impl Hash for Key
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Display for Key
[src]
impl Display for Key