pub struct OpcUaScrapingConfig {
pub node_exploration_config: Option<OpcUaNodeExplorationConfig>,
pub unit_node_name: String,
pub channel_naming_convention: Option<OpcUaChannelNamingConvention>,
pub override_host: bool,
pub unknown_data_type_handling: i32,
pub failed_monitor_handling: i32,
pub timestamp_handling: Option<OpcUaTimestampHandling>,
pub data_change_filter: Option<OpcUaDataChangeFilter>,
}
Expand description
Configuration for determining which nodes to scrape and how.
Fields§
§node_exploration_config: Option<OpcUaNodeExplorationConfig>
§unit_node_name: String
The browse name of the node under which the unit is stored for the nodes we scrape.
channel_naming_convention: Option<OpcUaChannelNamingConvention>
§override_host: bool
If true, we will override the host and port of the OPC UA server with the host and port of the original server URL.
unknown_data_type_handling: i32
How we will handle unknown data types when we read them from the server
failed_monitor_handling: i32
How to handle situations where there are failed monitors.
timestamp_handling: Option<OpcUaTimestampHandling>
What timestamps should we write for the channels?
data_change_filter: Option<OpcUaDataChangeFilter>
The data change filter to be applied for the monitored items in the subscription.
Implementations§
Source§impl OpcUaScrapingConfig
impl OpcUaScrapingConfig
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