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 Trippub 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>
) -> Trippub 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 Tripfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Trip[src]
impl Clone for Tripfn clone(&self) -> Trip[src]
fn clone(&self) -> TripReturns 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 Tripfn eq(&self, other: &Trip) -> bool[src]
fn eq(&self, other: &Trip) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Hash for Trip[src]
impl Hash for Tripfn 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 Tripimpl Ord for Trip[src]
impl Ord for Tripfn cmp(&self, other: &Self) -> Ordering[src]
fn cmp(&self, other: &Self) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl PartialOrd for Trip[src]
impl PartialOrd for Tripfn 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) -> bool1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> boolThis 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) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more