#[non_exhaustive]pub struct GetVehicleOptions {
pub shape: Option<String>,
pub flat: bool,
pub flat_lists: bool,
}Expand description
Options for Client::get_vehicle. Mirrors the Go SDK’s
GetEntityOptions for the vehicle detail endpoint.
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.shape: Option<String>Comma-separated field selector for dynamic response shaping.
flat: boolCollapse nested objects into dot-separated keys.
flat_lists: boolWhen flat is also true, flatten list-valued fields.
Implementations§
Source§impl GetVehicleOptions
impl GetVehicleOptions
Sourcepub fn builder() -> GetVehicleOptionsBuilder
pub fn builder() -> GetVehicleOptionsBuilder
Create an instance of GetVehicleOptions using the builder syntax
Trait Implementations§
Source§impl Clone for GetVehicleOptions
impl Clone for GetVehicleOptions
Source§fn clone(&self) -> GetVehicleOptions
fn clone(&self) -> GetVehicleOptions
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 GetVehicleOptions
impl Debug for GetVehicleOptions
Source§impl Default for GetVehicleOptions
impl Default for GetVehicleOptions
Source§fn default() -> GetVehicleOptions
fn default() -> GetVehicleOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for GetVehicleOptions
impl PartialEq for GetVehicleOptions
Source§fn eq(&self, other: &GetVehicleOptions) -> bool
fn eq(&self, other: &GetVehicleOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for GetVehicleOptions
impl StructuralPartialEq for GetVehicleOptions
Auto Trait Implementations§
impl Freeze for GetVehicleOptions
impl RefUnwindSafe for GetVehicleOptions
impl Send for GetVehicleOptions
impl Sync for GetVehicleOptions
impl Unpin for GetVehicleOptions
impl UnsafeUnpin for GetVehicleOptions
impl UnwindSafe for GetVehicleOptions
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