UAVariable

Struct UAVariable 

Source
pub struct UAVariable {
    pub base: UAInstance,
    pub value: Option<Value>,
    pub data_type: NodeId,
    pub value_rank: ValueRank,
    pub array_dimensions: ArrayDimensions,
    pub access_level: AccessLevel,
    pub user_access_level: AccessLevel,
    pub minimum_sampling_interval: Duration,
    pub historizing: bool,
}
Expand description

Variable defined in a nodeset.

Fields§

§base: UAInstance

Base data.

§value: Option<Value>

Initial or default value.

§data_type: NodeId

Data type ID.

§value_rank: ValueRank

Node value rank.

§array_dimensions: ArrayDimensions

Array dimensions.

§access_level: AccessLevel

Default access level.

§user_access_level: AccessLevel

Default user access level.

§minimum_sampling_interval: Duration

Default minimum sampling interval.

§historizing: bool

Default value of “historizing”, whether this node stores its history.

Trait Implementations§

Source§

impl Debug for UAVariable

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'input> XmlLoad<'input> for UAVariable

Source§

fn load(node: &Node<'_, 'input>) -> Result<Self, XmlError>

Load Self from an XML node.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.