#[non_exhaustive]pub struct DeviceMethodBuilder { /* private fields */ }Expand description
A builder for DeviceMethod.
Implementations§
source§impl DeviceMethodBuilder
impl DeviceMethodBuilder
sourcepub fn device_type(self, input: impl Into<String>) -> Self
pub fn device_type(self, input: impl Into<String>) -> Self
The type of the device, such as "button".
sourcepub fn set_device_type(self, input: Option<String>) -> Self
pub fn set_device_type(self, input: Option<String>) -> Self
The type of the device, such as "button".
sourcepub fn get_device_type(&self) -> &Option<String>
pub fn get_device_type(&self) -> &Option<String>
The type of the device, such as "button".
sourcepub fn method_name(self, input: impl Into<String>) -> Self
pub fn method_name(self, input: impl Into<String>) -> Self
The name of the method applicable to the deviceType.
sourcepub fn set_method_name(self, input: Option<String>) -> Self
pub fn set_method_name(self, input: Option<String>) -> Self
The name of the method applicable to the deviceType.
sourcepub fn get_method_name(&self) -> &Option<String>
pub fn get_method_name(&self) -> &Option<String>
The name of the method applicable to the deviceType.
sourcepub fn build(self) -> DeviceMethod
pub fn build(self) -> DeviceMethod
Consumes the builder and constructs a DeviceMethod.
Trait Implementations§
source§impl Clone for DeviceMethodBuilder
impl Clone for DeviceMethodBuilder
source§fn clone(&self) -> DeviceMethodBuilder
fn clone(&self) -> DeviceMethodBuilder
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 DeviceMethodBuilder
impl Debug for DeviceMethodBuilder
source§impl Default for DeviceMethodBuilder
impl Default for DeviceMethodBuilder
source§fn default() -> DeviceMethodBuilder
fn default() -> DeviceMethodBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<DeviceMethodBuilder> for DeviceMethodBuilder
impl PartialEq<DeviceMethodBuilder> for DeviceMethodBuilder
source§fn eq(&self, other: &DeviceMethodBuilder) -> bool
fn eq(&self, other: &DeviceMethodBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DeviceMethodBuilder
Auto Trait Implementations§
impl RefUnwindSafe for DeviceMethodBuilder
impl Send for DeviceMethodBuilder
impl Sync for DeviceMethodBuilder
impl Unpin for DeviceMethodBuilder
impl UnwindSafe for DeviceMethodBuilder
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