#[non_exhaustive]pub struct GatewayCapabilitySummaryBuilder { /* private fields */ }Expand description
A builder for GatewayCapabilitySummary.
Implementations§
source§impl GatewayCapabilitySummaryBuilder
impl GatewayCapabilitySummaryBuilder
sourcepub fn capability_namespace(self, input: impl Into<String>) -> Self
pub fn capability_namespace(self, input: impl Into<String>) -> Self
The namespace of the capability configuration. For example, if you configure OPC-UA sources from the IoT SiteWise console, your OPC-UA capability configuration has the namespace iotsitewise:opcuacollector:version, where version is a number such as 1.
sourcepub fn set_capability_namespace(self, input: Option<String>) -> Self
pub fn set_capability_namespace(self, input: Option<String>) -> Self
The namespace of the capability configuration. For example, if you configure OPC-UA sources from the IoT SiteWise console, your OPC-UA capability configuration has the namespace iotsitewise:opcuacollector:version, where version is a number such as 1.
sourcepub fn get_capability_namespace(&self) -> &Option<String>
pub fn get_capability_namespace(&self) -> &Option<String>
The namespace of the capability configuration. For example, if you configure OPC-UA sources from the IoT SiteWise console, your OPC-UA capability configuration has the namespace iotsitewise:opcuacollector:version, where version is a number such as 1.
sourcepub fn capability_sync_status(self, input: CapabilitySyncStatus) -> Self
pub fn capability_sync_status(self, input: CapabilitySyncStatus) -> Self
The synchronization status of the capability configuration. The sync status can be one of the following:
-
IN_SYNC– The gateway is running the capability configuration. -
OUT_OF_SYNC– The gateway hasn't received the capability configuration. -
SYNC_FAILED– The gateway rejected the capability configuration.
sourcepub fn set_capability_sync_status(
self,
input: Option<CapabilitySyncStatus>
) -> Self
pub fn set_capability_sync_status( self, input: Option<CapabilitySyncStatus> ) -> Self
The synchronization status of the capability configuration. The sync status can be one of the following:
-
IN_SYNC– The gateway is running the capability configuration. -
OUT_OF_SYNC– The gateway hasn't received the capability configuration. -
SYNC_FAILED– The gateway rejected the capability configuration.
sourcepub fn get_capability_sync_status(&self) -> &Option<CapabilitySyncStatus>
pub fn get_capability_sync_status(&self) -> &Option<CapabilitySyncStatus>
The synchronization status of the capability configuration. The sync status can be one of the following:
-
IN_SYNC– The gateway is running the capability configuration. -
OUT_OF_SYNC– The gateway hasn't received the capability configuration. -
SYNC_FAILED– The gateway rejected the capability configuration.
sourcepub fn build(self) -> Result<GatewayCapabilitySummary, BuildError>
pub fn build(self) -> Result<GatewayCapabilitySummary, BuildError>
Consumes the builder and constructs a GatewayCapabilitySummary.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for GatewayCapabilitySummaryBuilder
impl Clone for GatewayCapabilitySummaryBuilder
source§fn clone(&self) -> GatewayCapabilitySummaryBuilder
fn clone(&self) -> GatewayCapabilitySummaryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for GatewayCapabilitySummaryBuilder
impl Default for GatewayCapabilitySummaryBuilder
source§fn default() -> GatewayCapabilitySummaryBuilder
fn default() -> GatewayCapabilitySummaryBuilder
source§impl PartialEq for GatewayCapabilitySummaryBuilder
impl PartialEq for GatewayCapabilitySummaryBuilder
source§fn eq(&self, other: &GatewayCapabilitySummaryBuilder) -> bool
fn eq(&self, other: &GatewayCapabilitySummaryBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for GatewayCapabilitySummaryBuilder
Auto Trait Implementations§
impl Freeze for GatewayCapabilitySummaryBuilder
impl RefUnwindSafe for GatewayCapabilitySummaryBuilder
impl Send for GatewayCapabilitySummaryBuilder
impl Sync for GatewayCapabilitySummaryBuilder
impl Unpin for GatewayCapabilitySummaryBuilder
impl UnwindSafe for GatewayCapabilitySummaryBuilder
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> 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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more