[][src]Struct opcua_types::node_id::NodeId

pub struct NodeId {
    pub namespace: u16,
    pub identifier: Identifier,
}

An identifier for a node in the address space of an OPC UA Server.

Fields

namespace: u16

The index for a namespace

identifier: Identifier

The identifier for the node in the address space

Methods

impl NodeId[src]

pub fn new<T>(namespace: u16, value: T) -> NodeId where
    T: 'static + Into<Identifier>, 
[src]

pub fn is_null(&self) -> bool[src]

Test if the node id is null, i.e. 0 namespace and 0 identifier

pub fn null() -> NodeId[src]

Returns a null node id

pub fn next_numeric() -> NodeId[src]

pub fn as_object_id(&self) -> Result<ObjectId, ()>[src]

Extracts an ObjectId from a node id, providing the node id holds an object id

pub fn as_reference_type_id(&self) -> Result<ReferenceTypeId, ()>[src]

pub fn is_numeric(&self) -> bool[src]

Test if the node id is numeric

pub fn is_string(&self) -> bool[src]

Test if the node id is a string

pub fn is_guid(&self) -> bool[src]

Test if the node id is a guid

pub fn is_byte_string(&self) -> bool[src]

Test if the node id us a byte string

Trait Implementations

impl BinaryEncoder<NodeId> for NodeId[src]

fn to_vec(&self) -> Vec<u8>[src]

impl Into<String> for NodeId[src]

impl<'a> Into<ExpandedNodeId> for &'a NodeId[src]

impl Into<NodeId> for DataTypeId[src]

impl Into<NodeId> for ReferenceTypeId[src]

impl Into<NodeId> for ObjectTypeId[src]

impl Into<NodeId> for VariableTypeId[src]

impl Into<NodeId> for ObjectId[src]

impl Into<NodeId> for VariableId[src]

impl Into<NodeId> for MethodId[src]

impl Eq for NodeId[src]

impl Default for NodeId[src]

impl PartialEq<NodeId> for NodeId[src]

impl<'a> From<(u16, &'a str)> for NodeId[src]

impl From<(u16, UAString)> for NodeId[src]

impl From<(u16, u32)> for NodeId[src]

impl From<(u16, Guid)> for NodeId[src]

impl From<(u16, ByteString)> for NodeId[src]

impl From<NodeId> for ExpandedNodeId[src]

impl<'a> From<&'a DataTypeId> for NodeId[src]

impl<'a> From<&'a ReferenceTypeId> for NodeId[src]

impl<'a> From<&'a ObjectTypeId> for NodeId[src]

impl<'a> From<&'a VariableTypeId> for NodeId[src]

impl<'a> From<&'a ObjectId> for NodeId[src]

impl<'a> From<&'a VariableId> for NodeId[src]

impl<'a> From<&'a MethodId> for NodeId[src]

impl From<NodeId> for Variant[src]

impl<'a> From<&'a NodeId> for ReadValueId[src]

impl From<NodeId> for ReadValueId[src]

impl Clone for NodeId[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Display for NodeId[src]

impl Debug for NodeId[src]

impl Hash for NodeId[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 FromStr for NodeId[src]

type Err = StatusCode

The associated error which can be returned from parsing.

impl Serialize for NodeId[src]

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

Auto Trait Implementations

impl Send for NodeId

impl Sync for NodeId

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto 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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]