pub struct NodeDescription {
pub id: NodeId,
pub brand: String,
pub logo_url: Option<String>,
pub kind: String,
pub model_name: String,
pub user_defined_name: Option<String>,
pub role: Role,
}Expand description
Information about a node, as s2-connect-common.yml defines it.
Fields§
§id: NodeIdThe node’s identifier.
brand: StringThe brand a user would recognise.
logo_url: Option<String>A logo.
kind: StringWhat kind of thing it is.
model_name: StringThe model name.
user_defined_name: Option<String>A name the user gave it.
role: RoleWhether it is a CEM or an RM.
Trait Implementations§
Source§impl Clone for NodeDescription
impl Clone for NodeDescription
Source§impl Debug for NodeDescription
impl Debug for NodeDescription
Source§impl<'de> Deserialize<'de> for NodeDescription
impl<'de> Deserialize<'de> for NodeDescription
Source§fn 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 NodeDescription
Source§impl PartialEq for NodeDescription
impl PartialEq for NodeDescription
Source§impl Serialize for NodeDescription
impl Serialize for NodeDescription
impl StructuralPartialEq for NodeDescription
Auto Trait Implementations§
impl Forget for NodeDescription
impl Freeze for NodeDescription
impl Move for NodeDescription
impl RefUnwindSafe for NodeDescription
impl Send for NodeDescription
impl Sync for NodeDescription
impl Unpin for NodeDescription
impl UnsafeUnpin for NodeDescription
impl UnwindSafe for NodeDescription
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.