pub enum Operand {
ElementOperand(ElementOperand),
LiteralOperand(LiteralOperand),
AttributeOperand(AttributeOperand),
SimpleAttributeOperand(SimpleAttributeOperand),
}Variants§
ElementOperand(ElementOperand)
LiteralOperand(LiteralOperand)
AttributeOperand(AttributeOperand)
SimpleAttributeOperand(SimpleAttributeOperand)
Implementations§
Source§impl Operand
impl Operand
pub fn element(index: u32) -> Operand
pub fn literal<T>(literal: T) -> Operandwhere
T: Into<LiteralOperand>,
Sourcepub fn simple_attribute<T>(
type_definition_id: T,
browse_path: &str,
attribute_id: AttributeId,
index_range: UAString,
) -> Operand
pub fn simple_attribute<T>( type_definition_id: T, browse_path: &str, attribute_id: AttributeId, index_range: UAString, ) -> Operand
Creates a simple attribute operand. The browse path is the browse name using / as a separator.
pub fn operand_type(&self) -> OperandType
pub fn is_element(&self) -> bool
pub fn is_literal(&self) -> bool
pub fn is_attribute(&self) -> bool
pub fn is_simple_attribute(&self) -> bool
Trait Implementations§
Source§impl From<&Operand> for ExtensionObject
impl From<&Operand> for ExtensionObject
Source§fn from(v: &Operand) -> ExtensionObject
fn from(v: &Operand) -> ExtensionObject
Converts to this type from the input type.
Source§impl From<ElementOperand> for Operand
impl From<ElementOperand> for Operand
Source§fn from(v: ElementOperand) -> Operand
fn from(v: ElementOperand) -> Operand
Converts to this type from the input type.
Source§impl From<LiteralOperand> for Operand
impl From<LiteralOperand> for Operand
Source§fn from(v: LiteralOperand) -> Operand
fn from(v: LiteralOperand) -> Operand
Converts to this type from the input type.
Source§impl From<Operand> for ExtensionObject
impl From<Operand> for ExtensionObject
Source§fn from(v: Operand) -> ExtensionObject
fn from(v: Operand) -> ExtensionObject
Converts to this type from the input type.
Source§impl From<SimpleAttributeOperand> for Operand
impl From<SimpleAttributeOperand> for Operand
Source§fn from(v: SimpleAttributeOperand) -> Operand
fn from(v: SimpleAttributeOperand) -> Operand
Converts to this type from the input type.
Source§impl TryFrom<&ExtensionObject> for Operand
impl TryFrom<&ExtensionObject> for Operand
Source§type Error = StatusCode
type Error = StatusCode
The type returned in the event of a conversion error.
Source§fn try_from(
v: &ExtensionObject,
) -> Result<Operand, <Operand as TryFrom<&ExtensionObject>>::Error>
fn try_from( v: &ExtensionObject, ) -> Result<Operand, <Operand as TryFrom<&ExtensionObject>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for Operand
impl RefUnwindSafe for Operand
impl Send for Operand
impl Sync for Operand
impl Unpin for Operand
impl UnwindSafe for Operand
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