pub struct OpcUaScrapingConfigUpdates {
pub node_exploration_config: Option<OpcUaNodeExplorationConfig>,
pub unit_node_name: Option<String>,
pub channel_naming_convention: Option<OpcUaChannelNamingConvention>,
pub override_host: Option<bool>,
pub unknown_data_type_handling: Option<i32>,
pub failed_monitor_handling: Option<i32>,
pub timestamp_handling: Option<OpcUaTimestampHandling>,
pub data_change_filter: Option<OpcUaDataChangeFilter>,
}Expand description
Updated configuration for determining how data is discovered and handled
Fields§
§node_exploration_config: Option<OpcUaNodeExplorationConfig>§unit_node_name: Option<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: Option<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: Option<i32>How we will handle unknown data types when we read them from the server
failed_monitor_handling: Option<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 OpcUaScrapingConfigUpdates
impl OpcUaScrapingConfigUpdates
Sourcepub fn unit_node_name(&self) -> &str
pub fn unit_node_name(&self) -> &str
Returns the value of unit_node_name, or the default value if unit_node_name is unset.
Sourcepub fn override_host(&self) -> bool
pub fn override_host(&self) -> bool
Returns the value of override_host, or the default value if override_host is unset.
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 unset or 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 unset or 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 OpcUaScrapingConfigUpdates
impl Clone for OpcUaScrapingConfigUpdates
Source§fn clone(&self) -> OpcUaScrapingConfigUpdates
fn clone(&self) -> OpcUaScrapingConfigUpdates
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OpcUaScrapingConfigUpdates
impl Debug for OpcUaScrapingConfigUpdates
Source§impl Default for OpcUaScrapingConfigUpdates
impl Default for OpcUaScrapingConfigUpdates
Source§impl Message for OpcUaScrapingConfigUpdates
impl Message for OpcUaScrapingConfigUpdates
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.impl StructuralPartialEq for OpcUaScrapingConfigUpdates
Auto Trait Implementations§
impl Freeze for OpcUaScrapingConfigUpdates
impl RefUnwindSafe for OpcUaScrapingConfigUpdates
impl Send for OpcUaScrapingConfigUpdates
impl Sync for OpcUaScrapingConfigUpdates
impl Unpin for OpcUaScrapingConfigUpdates
impl UnwindSafe for OpcUaScrapingConfigUpdates
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