#[non_exhaustive]pub struct CanDbcDefinitionBuilder { /* private fields */ }Expand description
A builder for CanDbcDefinition.
Implementations§
source§impl CanDbcDefinitionBuilder
impl CanDbcDefinitionBuilder
sourcepub fn network_interface(self, input: impl Into<String>) -> Self
pub fn network_interface(self, input: impl Into<String>) -> Self
Contains information about a network interface.
This field is required.sourcepub fn set_network_interface(self, input: Option<String>) -> Self
pub fn set_network_interface(self, input: Option<String>) -> Self
Contains information about a network interface.
sourcepub fn get_network_interface(&self) -> &Option<String>
pub fn get_network_interface(&self) -> &Option<String>
Contains information about a network interface.
sourcepub fn can_dbc_files(self, input: Blob) -> Self
pub fn can_dbc_files(self, input: Blob) -> Self
Appends an item to can_dbc_files.
To override the contents of this collection use set_can_dbc_files.
A list of DBC files. You can upload only one DBC file for each network interface and specify up to five (inclusive) files in the list. The DBC file can be a maximum size of 200 MB.
sourcepub fn set_can_dbc_files(self, input: Option<Vec<Blob>>) -> Self
pub fn set_can_dbc_files(self, input: Option<Vec<Blob>>) -> Self
A list of DBC files. You can upload only one DBC file for each network interface and specify up to five (inclusive) files in the list. The DBC file can be a maximum size of 200 MB.
sourcepub fn get_can_dbc_files(&self) -> &Option<Vec<Blob>>
pub fn get_can_dbc_files(&self) -> &Option<Vec<Blob>>
A list of DBC files. You can upload only one DBC file for each network interface and specify up to five (inclusive) files in the list. The DBC file can be a maximum size of 200 MB.
sourcepub fn signals_map(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn signals_map(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to signals_map.
To override the contents of this collection use set_signals_map.
Pairs every signal specified in your vehicle model with a signal decoder.
sourcepub fn set_signals_map(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_signals_map(self, input: Option<HashMap<String, String>>) -> Self
Pairs every signal specified in your vehicle model with a signal decoder.
sourcepub fn get_signals_map(&self) -> &Option<HashMap<String, String>>
pub fn get_signals_map(&self) -> &Option<HashMap<String, String>>
Pairs every signal specified in your vehicle model with a signal decoder.
sourcepub fn build(self) -> Result<CanDbcDefinition, BuildError>
pub fn build(self) -> Result<CanDbcDefinition, BuildError>
Consumes the builder and constructs a CanDbcDefinition.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CanDbcDefinitionBuilder
impl Clone for CanDbcDefinitionBuilder
source§fn clone(&self) -> CanDbcDefinitionBuilder
fn clone(&self) -> CanDbcDefinitionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CanDbcDefinitionBuilder
impl Debug for CanDbcDefinitionBuilder
source§impl Default for CanDbcDefinitionBuilder
impl Default for CanDbcDefinitionBuilder
source§fn default() -> CanDbcDefinitionBuilder
fn default() -> CanDbcDefinitionBuilder
source§impl PartialEq for CanDbcDefinitionBuilder
impl PartialEq for CanDbcDefinitionBuilder
source§fn eq(&self, other: &CanDbcDefinitionBuilder) -> bool
fn eq(&self, other: &CanDbcDefinitionBuilder) -> bool
self and other values to be equal, and is used
by ==.