pub struct SimulateCharacteristicOperationResponseBuilder { /* private fields */ }Expand description
Builder for SimulateCharacteristicOperationResponse.
Implementations§
Source§impl SimulateCharacteristicOperationResponseBuilder
impl SimulateCharacteristicOperationResponseBuilder
pub fn characteristic_id<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
pub fn type<VALUE: Into<CharacteristicOperationType>>( &mut self, value: VALUE, ) -> &mut Self
pub fn code<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn data<VALUE: Into<Vec<u8>>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn build(
&self,
) -> Result<SimulateCharacteristicOperationResponse, SimulateCharacteristicOperationResponseBuilderError>
pub fn build( &self, ) -> Result<SimulateCharacteristicOperationResponse, SimulateCharacteristicOperationResponseBuilderError>
Builds a new SimulateCharacteristicOperationResponse.
§Errors
If a required field has not been initialized.
Trait Implementations§
Source§impl Clone for SimulateCharacteristicOperationResponseBuilder
impl Clone for SimulateCharacteristicOperationResponseBuilder
Source§fn clone(&self) -> SimulateCharacteristicOperationResponseBuilder
fn clone(&self) -> SimulateCharacteristicOperationResponseBuilder
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for SimulateCharacteristicOperationResponseBuilder
impl RefUnwindSafe for SimulateCharacteristicOperationResponseBuilder
impl Send for SimulateCharacteristicOperationResponseBuilder
impl Sync for SimulateCharacteristicOperationResponseBuilder
impl Unpin for SimulateCharacteristicOperationResponseBuilder
impl UnsafeUnpin for SimulateCharacteristicOperationResponseBuilder
impl UnwindSafe for SimulateCharacteristicOperationResponseBuilder
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