Struct aws_sdk_iotfleetwise::types::builders::ObdSignalBuilder
source · #[non_exhaustive]pub struct ObdSignalBuilder { /* private fields */ }
Expand description
A builder for ObdSignal
.
Implementations§
source§impl ObdSignalBuilder
impl ObdSignalBuilder
sourcepub fn pid_response_length(self, input: i32) -> Self
pub fn pid_response_length(self, input: i32) -> Self
The length of the requested data.
This field is required.sourcepub fn set_pid_response_length(self, input: Option<i32>) -> Self
pub fn set_pid_response_length(self, input: Option<i32>) -> Self
The length of the requested data.
sourcepub fn get_pid_response_length(&self) -> &Option<i32>
pub fn get_pid_response_length(&self) -> &Option<i32>
The length of the requested data.
sourcepub fn service_mode(self, input: i32) -> Self
pub fn service_mode(self, input: i32) -> Self
The mode of operation (diagnostic service) in a message.
This field is required.sourcepub fn set_service_mode(self, input: Option<i32>) -> Self
pub fn set_service_mode(self, input: Option<i32>) -> Self
The mode of operation (diagnostic service) in a message.
sourcepub fn get_service_mode(&self) -> &Option<i32>
pub fn get_service_mode(&self) -> &Option<i32>
The mode of operation (diagnostic service) in a message.
sourcepub fn pid(self, input: i32) -> Self
pub fn pid(self, input: i32) -> Self
The diagnostic code used to request data from a vehicle for this signal.
This field is required.sourcepub fn set_pid(self, input: Option<i32>) -> Self
pub fn set_pid(self, input: Option<i32>) -> Self
The diagnostic code used to request data from a vehicle for this signal.
sourcepub fn get_pid(&self) -> &Option<i32>
pub fn get_pid(&self) -> &Option<i32>
The diagnostic code used to request data from a vehicle for this signal.
sourcepub fn scaling(self, input: f64) -> Self
pub fn scaling(self, input: f64) -> Self
A multiplier used to decode the message.
This field is required.sourcepub fn set_scaling(self, input: Option<f64>) -> Self
pub fn set_scaling(self, input: Option<f64>) -> Self
A multiplier used to decode the message.
sourcepub fn get_scaling(&self) -> &Option<f64>
pub fn get_scaling(&self) -> &Option<f64>
A multiplier used to decode the message.
sourcepub fn offset(self, input: f64) -> Self
pub fn offset(self, input: f64) -> Self
The offset used to calculate the signal value. Combined with scaling, the calculation is value = raw_value * scaling + offset
.
sourcepub fn set_offset(self, input: Option<f64>) -> Self
pub fn set_offset(self, input: Option<f64>) -> Self
The offset used to calculate the signal value. Combined with scaling, the calculation is value = raw_value * scaling + offset
.
sourcepub fn get_offset(&self) -> &Option<f64>
pub fn get_offset(&self) -> &Option<f64>
The offset used to calculate the signal value. Combined with scaling, the calculation is value = raw_value * scaling + offset
.
sourcepub fn start_byte(self, input: i32) -> Self
pub fn start_byte(self, input: i32) -> Self
Indicates the beginning of the message.
This field is required.sourcepub fn set_start_byte(self, input: Option<i32>) -> Self
pub fn set_start_byte(self, input: Option<i32>) -> Self
Indicates the beginning of the message.
sourcepub fn get_start_byte(&self) -> &Option<i32>
pub fn get_start_byte(&self) -> &Option<i32>
Indicates the beginning of the message.
sourcepub fn byte_length(self, input: i32) -> Self
pub fn byte_length(self, input: i32) -> Self
The length of a message.
This field is required.sourcepub fn set_byte_length(self, input: Option<i32>) -> Self
pub fn set_byte_length(self, input: Option<i32>) -> Self
The length of a message.
sourcepub fn get_byte_length(&self) -> &Option<i32>
pub fn get_byte_length(&self) -> &Option<i32>
The length of a message.
sourcepub fn bit_right_shift(self, input: i32) -> Self
pub fn bit_right_shift(self, input: i32) -> Self
The number of positions to shift bits in the message.
sourcepub fn set_bit_right_shift(self, input: Option<i32>) -> Self
pub fn set_bit_right_shift(self, input: Option<i32>) -> Self
The number of positions to shift bits in the message.
sourcepub fn get_bit_right_shift(&self) -> &Option<i32>
pub fn get_bit_right_shift(&self) -> &Option<i32>
The number of positions to shift bits in the message.
sourcepub fn bit_mask_length(self, input: i32) -> Self
pub fn bit_mask_length(self, input: i32) -> Self
The number of bits to mask in a message.
sourcepub fn set_bit_mask_length(self, input: Option<i32>) -> Self
pub fn set_bit_mask_length(self, input: Option<i32>) -> Self
The number of bits to mask in a message.
sourcepub fn get_bit_mask_length(&self) -> &Option<i32>
pub fn get_bit_mask_length(&self) -> &Option<i32>
The number of bits to mask in a message.
Trait Implementations§
source§impl Clone for ObdSignalBuilder
impl Clone for ObdSignalBuilder
source§fn clone(&self) -> ObdSignalBuilder
fn clone(&self) -> ObdSignalBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ObdSignalBuilder
impl Debug for ObdSignalBuilder
source§impl Default for ObdSignalBuilder
impl Default for ObdSignalBuilder
source§fn default() -> ObdSignalBuilder
fn default() -> ObdSignalBuilder
source§impl PartialEq for ObdSignalBuilder
impl PartialEq for ObdSignalBuilder
source§fn eq(&self, other: &ObdSignalBuilder) -> bool
fn eq(&self, other: &ObdSignalBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.