#[non_exhaustive]pub struct ListVehiclesResponse {
pub vehicles: Vec<Vehicle>,
pub next_page_token: String,
pub total_size: i64,
/* private fields */
}Expand description
ListVehicles response message.
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.vehicles: Vec<Vehicle>Vehicles matching the criteria in the request.
The maximum number of vehicles returned is determined by the page_size
field in the request.
next_page_token: StringToken to retrieve the next page of vehicles, or empty if there are no more vehicles that meet the request criteria.
total_size: i64Required. Total number of vehicles matching the request criteria across all pages.
Implementations§
Source§impl ListVehiclesResponse
impl ListVehiclesResponse
Sourcepub fn set_vehicles<T, V>(self, v: T) -> Self
pub fn set_vehicles<T, V>(self, v: T) -> Self
Sourcepub fn set_next_page_token<T: Into<String>>(self, v: T) -> Self
pub fn set_next_page_token<T: Into<String>>(self, v: T) -> Self
Sets the value of next_page_token.
§Example
ⓘ
let x = ListVehiclesResponse::new().set_next_page_token("example");Sourcepub fn set_total_size<T: Into<i64>>(self, v: T) -> Self
pub fn set_total_size<T: Into<i64>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for ListVehiclesResponse
impl Clone for ListVehiclesResponse
Source§fn clone(&self) -> ListVehiclesResponse
fn clone(&self) -> ListVehiclesResponse
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 ListVehiclesResponse
impl Debug for ListVehiclesResponse
Source§impl Default for ListVehiclesResponse
impl Default for ListVehiclesResponse
Source§fn default() -> ListVehiclesResponse
fn default() -> ListVehiclesResponse
Returns the “default value” for a type. Read more
Source§impl Message for ListVehiclesResponse
impl Message for ListVehiclesResponse
Source§impl PartialEq for ListVehiclesResponse
impl PartialEq for ListVehiclesResponse
impl StructuralPartialEq for ListVehiclesResponse
Auto Trait Implementations§
impl Freeze for ListVehiclesResponse
impl RefUnwindSafe for ListVehiclesResponse
impl Send for ListVehiclesResponse
impl Sync for ListVehiclesResponse
impl Unpin for ListVehiclesResponse
impl UnsafeUnpin for ListVehiclesResponse
impl UnwindSafe for ListVehiclesResponse
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