[][src]Struct splinter::registry::Node

pub struct Node {
    pub identity: String,
    pub endpoints: Vec<String>,
    pub display_name: String,
    pub keys: Vec<String>,
    pub metadata: HashMap<String, String>,
}

Native representation of a node in a registry.

Fields

identity: String

The Splinter identity of the node; must be non-empty and unique in the registry.

endpoints: Vec<String>

The endpoints the node can be reached at; at least one endpoint must be provided, and each endpoint must be non-empty and unique in the registry.

display_name: String

A human-readable name for the node; must be non-empty.

keys: Vec<String>

The list of public keys that are permitted to act on behalf of the node; at least one key must be provided, and each key must be non-empty.

metadata: HashMap<String, String>

A map with node metadata.

Implementations

impl Node[src]

pub fn builder<S: Into<String>>(identity: S) -> NodeBuilder[src]

Creates a new NodeBuilder with the node's identity.

pub fn has_key(&self, key: &str) -> bool[src]

Returns true if the given key is listed for the node; returns false otherwise.

Trait Implementations

impl Clone for Node[src]

impl Debug for Node[src]

impl<'de> Deserialize<'de> for Node[src]

impl PartialEq<Node> for Node[src]

impl Serialize for Node[src]

impl StructuralPartialEq for Node[src]

Auto Trait Implementations

impl RefUnwindSafe for Node

impl Send for Node

impl Sync for Node

impl Unpin for Node

impl UnwindSafe for Node

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<P, N> IntoBytes<P> for N where
    P: Message + FromNative<N>, 
[src]

impl<N, P> IntoNative<N> for P where
    N: FromProto<P>, 
[src]

impl<N, P> IntoProto<P> for N where
    P: FromNative<N>, 
[src]

impl<T> IntoSql for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,