pub struct Collection {Show 14 fields
pub id: u64,
pub name: Option<String>,
pub description: Option<String>,
pub user_id: Option<u64>,
pub visibility: Option<Visibility>,
pub url: Option<String>,
pub html_url: Option<String>,
pub cover: Option<String>,
pub created_at: Option<String>,
pub updated_at: Option<String>,
pub route_count: Option<u32>,
pub cover_photo_url: Option<String>,
pub routes: Option<Vec<Route>>,
pub trips: Option<Vec<Trip>>,
}Expand description
A collection of routes and trips
Fields§
§id: u64Collection ID
name: Option<String>Collection name
description: Option<String>Collection description
user_id: Option<u64>User ID of the collection owner
visibility: Option<Visibility>Visibility
url: Option<String>API URL
html_url: Option<String>HTML/web URL
cover: Option<String>Cover photo/image
created_at: Option<String>Created timestamp
updated_at: Option<String>Updated timestamp
route_count: Option<u32>Number of routes in the collection
cover_photo_url: Option<String>Collection cover photo URL
routes: Option<Vec<Route>>Routes in the collection (included when fetching a specific collection)
trips: Option<Vec<Trip>>Trips in the collection (included when fetching a specific collection)
Trait Implementations§
Source§impl Clone for Collection
impl Clone for Collection
Source§fn clone(&self) -> Collection
fn clone(&self) -> Collection
Returns a duplicate of the value. Read more
1.0.0 · 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 Collection
impl Debug for Collection
Source§impl<'de> Deserialize<'de> for Collection
impl<'de> Deserialize<'de> for Collection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Collection
impl RefUnwindSafe for Collection
impl Send for Collection
impl Sync for Collection
impl Unpin for Collection
impl UnwindSafe for Collection
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