[−][src]Struct splinter::registry::Node
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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<Node> for Node
[src]
impl Serialize for Node
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<P, N> IntoBytes<P> for N where
P: Message + FromNative<N>,
[src]
P: Message + FromNative<N>,
fn into_bytes(Self) -> Result<Vec<u8>, ProtoConversionError>
[src]
impl<N, P> IntoNative<N> for P where
N: FromProto<P>,
[src]
N: FromProto<P>,
fn into_native(Self) -> Result<N, ProtoConversionError>
[src]
impl<N, P> IntoProto<P> for N where
P: FromNative<N>,
[src]
P: FromNative<N>,
fn into_proto(Self) -> Result<P, ProtoConversionError>
[src]
impl<T> IntoSql for T
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
&'a Self: AsExpression<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,