#[non_exhaustive]pub struct VehicleAttributeList {
pub attributes: Vec<VehicleAttribute>,
/* private fields */
}Expand description
A list-of-lists datatype for vehicle attributes.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.attributes: Vec<VehicleAttribute>A list of attributes in this collection.
Implementations§
Source§impl VehicleAttributeList
impl VehicleAttributeList
Sourcepub fn set_attributes<T, V>(self, v: T) -> Self
pub fn set_attributes<T, V>(self, v: T) -> Self
Sets the value of attributes.
§Example
ⓘ
use google_maps_fleetengine_v1::model::VehicleAttribute;
let x = VehicleAttributeList::new()
.set_attributes([
VehicleAttribute::default()/* use setters */,
VehicleAttribute::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for VehicleAttributeList
impl Clone for VehicleAttributeList
Source§fn clone(&self) -> VehicleAttributeList
fn clone(&self) -> VehicleAttributeList
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 VehicleAttributeList
impl Debug for VehicleAttributeList
Source§impl Default for VehicleAttributeList
impl Default for VehicleAttributeList
Source§fn default() -> VehicleAttributeList
fn default() -> VehicleAttributeList
Returns the “default value” for a type. Read more
Source§impl Message for VehicleAttributeList
impl Message for VehicleAttributeList
Source§impl PartialEq for VehicleAttributeList
impl PartialEq for VehicleAttributeList
impl StructuralPartialEq for VehicleAttributeList
Auto Trait Implementations§
impl Freeze for VehicleAttributeList
impl RefUnwindSafe for VehicleAttributeList
impl Send for VehicleAttributeList
impl Sync for VehicleAttributeList
impl Unpin for VehicleAttributeList
impl UnsafeUnpin for VehicleAttributeList
impl UnwindSafe for VehicleAttributeList
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