#[non_exhaustive]pub struct DeviceTemplateBuilder { /* private fields */ }Expand description
A builder for DeviceTemplate.
Implementations§
source§impl DeviceTemplateBuilder
impl DeviceTemplateBuilder
sourcepub fn device_type(self, input: impl Into<String>) -> Self
pub fn device_type(self, input: impl Into<String>) -> Self
The device type, which currently must be "button".
sourcepub fn set_device_type(self, input: Option<String>) -> Self
pub fn set_device_type(self, input: Option<String>) -> Self
The device type, which currently must be "button".
sourcepub fn get_device_type(&self) -> &Option<String>
pub fn get_device_type(&self) -> &Option<String>
The device type, which currently must be "button".
sourcepub fn callback_overrides(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
pub fn callback_overrides( self, k: impl Into<String>, v: impl Into<String> ) -> Self
Adds a key-value pair to callback_overrides.
To override the contents of this collection use set_callback_overrides.
An optional Lambda function to invoke instead of the default Lambda function provided by the placement template.
sourcepub fn set_callback_overrides(
self,
input: Option<HashMap<String, String>>
) -> Self
pub fn set_callback_overrides( self, input: Option<HashMap<String, String>> ) -> Self
An optional Lambda function to invoke instead of the default Lambda function provided by the placement template.
sourcepub fn get_callback_overrides(&self) -> &Option<HashMap<String, String>>
pub fn get_callback_overrides(&self) -> &Option<HashMap<String, String>>
An optional Lambda function to invoke instead of the default Lambda function provided by the placement template.
sourcepub fn build(self) -> DeviceTemplate
pub fn build(self) -> DeviceTemplate
Consumes the builder and constructs a DeviceTemplate.
Trait Implementations§
source§impl Clone for DeviceTemplateBuilder
impl Clone for DeviceTemplateBuilder
source§fn clone(&self) -> DeviceTemplateBuilder
fn clone(&self) -> DeviceTemplateBuilder
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 DeviceTemplateBuilder
impl Debug for DeviceTemplateBuilder
source§impl Default for DeviceTemplateBuilder
impl Default for DeviceTemplateBuilder
source§fn default() -> DeviceTemplateBuilder
fn default() -> DeviceTemplateBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for DeviceTemplateBuilder
impl PartialEq for DeviceTemplateBuilder
source§fn eq(&self, other: &DeviceTemplateBuilder) -> bool
fn eq(&self, other: &DeviceTemplateBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DeviceTemplateBuilder
Auto Trait Implementations§
impl RefUnwindSafe for DeviceTemplateBuilder
impl Send for DeviceTemplateBuilder
impl Sync for DeviceTemplateBuilder
impl Unpin for DeviceTemplateBuilder
impl UnwindSafe for DeviceTemplateBuilder
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
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>
Creates a shared type from an unshared type.