[][src]Struct stcp_scraper::Line

pub struct Line {
    pub accessibility: u8,
    pub code: Code,
    pub pub_code: PubCode,
    pub description: String,
}

Represents a STCP line, such as 600, ZC or 3M.

Fields

accessibility: u8

Accessibility level. Unsure what it means or what it is used for.

code: Code

Code is the internal code for STCP, such as 600 or 107. In this case, 107 matches to the ZC pubcode.

pub_code: PubCode

Pubcode is the code for the users, such as 600 or ZC.

description: String

Description of line, including pubcode and initial and final stops.

Trait Implementations

impl PartialEq<Line> for Line[src]

impl Debug for Line[src]

impl Serialize for Line[src]

impl<'de> Deserialize<'de> for Line[src]

Auto Trait Implementations

impl Send for Line

impl Unpin for Line

impl Sync for Line

impl UnwindSafe for Line

impl RefUnwindSafe for Line

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err