Struct aws_sdk_iot1clickdevices::types::DeviceMethod
source · #[non_exhaustive]pub struct DeviceMethod {
pub device_type: Option<String>,
pub method_name: Option<String>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.device_type: Option<String>The type of the device, such as "button".
method_name: Option<String>The name of the method applicable to the deviceType.
Implementations§
source§impl DeviceMethod
impl DeviceMethod
sourcepub fn device_type(&self) -> Option<&str>
pub fn device_type(&self) -> Option<&str>
The type of the device, such as "button".
sourcepub fn method_name(&self) -> Option<&str>
pub fn method_name(&self) -> Option<&str>
The name of the method applicable to the deviceType.
source§impl DeviceMethod
impl DeviceMethod
sourcepub fn builder() -> DeviceMethodBuilder
pub fn builder() -> DeviceMethodBuilder
Creates a new builder-style object to manufacture DeviceMethod.
Trait Implementations§
source§impl Clone for DeviceMethod
impl Clone for DeviceMethod
source§fn clone(&self) -> DeviceMethod
fn clone(&self) -> DeviceMethod
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for DeviceMethod
impl Debug for DeviceMethod
source§impl PartialEq<DeviceMethod> for DeviceMethod
impl PartialEq<DeviceMethod> for DeviceMethod
source§fn eq(&self, other: &DeviceMethod) -> bool
fn eq(&self, other: &DeviceMethod) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DeviceMethod
Auto Trait Implementations§
impl RefUnwindSafe for DeviceMethod
impl Send for DeviceMethod
impl Sync for DeviceMethod
impl Unpin for DeviceMethod
impl UnwindSafe for DeviceMethod
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