Struct gtfs_server::models::trip::Trip [−][src]
pub struct Trip { pub uid: String, pub route_id: String, pub service_id: Option<String>, pub headsign: Option<String>, pub short_name: Option<String>, pub direction_id: i32, pub stop_sequence: Option<Vec<StopTrip>>, // some fields omitted }
Fields
uid: String
route_id: String
service_id: Option<String>
headsign: Option<String>
short_name: Option<String>
direction_id: i32
stop_sequence: Option<Vec<StopTrip>>
Methods
impl Trip
[src]
impl Trip
pub fn new(
uid: String,
route_id: String,
service_id: Option<String>,
headsign: Option<String>,
short_name: Option<String>,
direction_id: Option<i32>
) -> Trip
[src]
pub fn new(
uid: String,
route_id: String,
service_id: Option<String>,
headsign: Option<String>,
short_name: Option<String>,
direction_id: Option<i32>
) -> Trip
pub fn set_id(&mut self, id: String)
[src]
pub fn set_id(&mut self, id: String)
pub fn set_feed_id(&mut self, feed_id: String)
[src]
pub fn set_feed_id(&mut self, feed_id: String)
Trait Implementations
impl Debug for Trip
[src]
impl Debug for Trip
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Trip
[src]
impl Clone for Trip
fn clone(&self) -> Trip
[src]
fn clone(&self) -> Trip
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for Trip
[src]
impl PartialEq for Trip
fn eq(&self, other: &Trip) -> bool
[src]
fn eq(&self, other: &Trip) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Hash for Trip
[src]
impl Hash for Trip
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash<H: Hasher>(&self, state: &mut H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Eq for Trip
[src]
impl Eq for Trip
impl Ord for Trip
[src]
impl Ord for Trip
fn cmp(&self, other: &Self) -> Ordering
[src]
fn cmp(&self, other: &Self) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialOrd for Trip
[src]
impl PartialOrd for Trip
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more