#[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 ==.impl StructuralPartialEq for CanDbcDefinitionBuilder
Auto Trait Implementations§
impl Freeze for CanDbcDefinitionBuilder
impl RefUnwindSafe for CanDbcDefinitionBuilder
impl Send for CanDbcDefinitionBuilder
impl Sync for CanDbcDefinitionBuilder
impl Unpin for CanDbcDefinitionBuilder
impl UnwindSafe for CanDbcDefinitionBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more