pub struct OpcUaScrapingConfig {
pub root_nodes: Vec<OpcNode>,
pub skip_nodes: Vec<OpcNode>,
pub unit_node_name: String,
pub channel_naming_convention: i32,
pub override_host: bool,
pub reference_exploration_type: i32,
pub unknown_data_type_handling: i32,
pub failed_monitor_handling: i32,
}Expand description
Configuration for determining which nodes to scrape. You can combine these settings to choose exactly which nodes you want to scrape.
Fields§
§root_nodes: Vec<OpcNode>Root nodes to subscribe to. For each node specified here, we will subscribe to that node and all of its children.
skip_nodes: Vec<OpcNode>We will not subscribe to any of these nodes.
unit_node_name: StringThe browse name of the node under which the unit is stored for the nodes we scrape.
channel_naming_convention: i32§override_host: boolIf true, we will override the host and port of the OPC UA server with the host and port of the original server URL.
reference_exploration_type: i32The type of references that we will follow when traversing the root nodes in the OPC UA server.
unknown_data_type_handling: i32How we will handle unknown data types when we read them from the server
failed_monitor_handling: i32How to handle situations where there are failed monitors.
Implementations§
Source§impl OpcUaScrapingConfig
impl OpcUaScrapingConfig
Sourcepub fn channel_naming_convention(&self) -> OpcUaChannelNamingConvention
pub fn channel_naming_convention(&self) -> OpcUaChannelNamingConvention
Returns the enum value of channel_naming_convention, or the default if the field is set to an invalid enum value.
Sourcepub fn set_channel_naming_convention(
&mut self,
value: OpcUaChannelNamingConvention,
)
pub fn set_channel_naming_convention( &mut self, value: OpcUaChannelNamingConvention, )
Sets channel_naming_convention to the provided enum value.
Sourcepub fn reference_exploration_type(&self) -> OpcUaReferenceExplorationType
pub fn reference_exploration_type(&self) -> OpcUaReferenceExplorationType
Returns the enum value of reference_exploration_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_reference_exploration_type(
&mut self,
value: OpcUaReferenceExplorationType,
)
pub fn set_reference_exploration_type( &mut self, value: OpcUaReferenceExplorationType, )
Sets reference_exploration_type to the provided enum value.
Sourcepub fn unknown_data_type_handling(&self) -> OpcUaUnknownDataTypeHandling
pub fn unknown_data_type_handling(&self) -> OpcUaUnknownDataTypeHandling
Returns the enum value of unknown_data_type_handling, or the default if the field is set to an invalid enum value.
Sourcepub fn set_unknown_data_type_handling(
&mut self,
value: OpcUaUnknownDataTypeHandling,
)
pub fn set_unknown_data_type_handling( &mut self, value: OpcUaUnknownDataTypeHandling, )
Sets unknown_data_type_handling to the provided enum value.
Sourcepub fn failed_monitor_handling(&self) -> OpcUaFailedMonitorHandling
pub fn failed_monitor_handling(&self) -> OpcUaFailedMonitorHandling
Returns the enum value of failed_monitor_handling, or the default if the field is set to an invalid enum value.
Sourcepub fn set_failed_monitor_handling(&mut self, value: OpcUaFailedMonitorHandling)
pub fn set_failed_monitor_handling(&mut self, value: OpcUaFailedMonitorHandling)
Sets failed_monitor_handling to the provided enum value.
Trait Implementations§
Source§impl Clone for OpcUaScrapingConfig
impl Clone for OpcUaScrapingConfig
Source§fn clone(&self) -> OpcUaScrapingConfig
fn clone(&self) -> OpcUaScrapingConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OpcUaScrapingConfig
impl Debug for OpcUaScrapingConfig
Source§impl Default for OpcUaScrapingConfig
impl Default for OpcUaScrapingConfig
Source§impl Message for OpcUaScrapingConfig
impl Message for OpcUaScrapingConfig
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for OpcUaScrapingConfig
impl PartialEq for OpcUaScrapingConfig
impl StructuralPartialEq for OpcUaScrapingConfig
Auto Trait Implementations§
impl Freeze for OpcUaScrapingConfig
impl RefUnwindSafe for OpcUaScrapingConfig
impl Send for OpcUaScrapingConfig
impl Sync for OpcUaScrapingConfig
impl Unpin for OpcUaScrapingConfig
impl UnwindSafe for OpcUaScrapingConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request