[][src]Struct opcua_server::prelude::service_types::RelativePathElement

pub struct RelativePathElement {
    pub reference_type_id: NodeId,
    pub is_inverse: bool,
    pub include_subtypes: bool,
    pub target_name: QualifiedName,
}

An element in a relative path.

Fields

reference_type_id: NodeIdis_inverse: boolinclude_subtypes: booltarget_name: QualifiedName

Methods

impl RelativePathElement[src]

pub fn default_node_resolver(
    namespace: u16,
    browse_name: &str
) -> Option<NodeId>
[src]

This is the default node resolver that attempts to resolve a browse name onto a reference type id. The default implementation resides in the types module so it doesn't have access to the address space.

Therefore it makes a best guess by testing the browse name against the standard reference types and if fails to match it will produce a node id from the namespace and browse name.

pub fn default_browse_name_resolver(node_id: &NodeId) -> Option<String>[src]

pub fn from_str<CB>(
    path: &str,
    node_resolver: &CB
) -> Result<RelativePathElement, ()> where
    CB: Fn(u16, &str) -> Option<NodeId>, 
[src]

Parse a relative path element according to the OPC UA Part 4 Appendix A BNF

<relative-path> ::= <reference-type> <browse-name> [relative-path] <reference-type> ::= '/' | '.' | '<' ['#'] ['!'] <browse-name> '>' <browse-name> ::= [<namespace-index> ':'] <name> <namespace-index> ::= <digit> [<digit>] <digit> ::= '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' <name> ::= (<name-char> | '&' <reserved-char>) [<name>] <reserved-char> ::= '/' | '.' | '<' | '>' | ':' | '#' | '!' | '&' <name-char> ::= All valid characters for a String (see Part 3) excluding reserved-chars.

Examples

  • /foo
  • /0:foo
  • .bar
  • <0:HasEncoding>bar
  • <!NonHierarchicalReferences>foo
  • <#!2:MyReftype>2:blah

Trait Implementations

impl BinaryEncoder<RelativePathElement> for RelativePathElement[src]

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

impl Clone for RelativePathElement[src]

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

Performs copy-assignment from source. Read more

impl MessageInfo for RelativePathElement[src]

impl PartialEq<RelativePathElement> for RelativePathElement[src]

impl Debug for RelativePathElement[src]

Auto Trait Implementations

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, 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> Erased for T