pub struct Disruption {Show 14 fields
pub key: String,
pub subcause: Option<String>,
pub cause: String,
pub expired: bool,
pub track_restriction: TrackRestriction,
pub text: String,
pub region_areas: Vec<String>,
pub regions: Vec<String>,
pub coordinates: Vec<DisruptionCoordinates>,
pub stations: Vec<DisruptionStation>,
pub sections: Vec<DisruptionSection>,
pub effects: Vec<DisruptionEffect>,
pub period: DisruptionPeriod,
pub collective_report: bool,
}
Fields§
§key: String
§subcause: Option<String>
§cause: String
§expired: bool
§track_restriction: TrackRestriction
§text: String
§region_areas: Vec<String>
§regions: Vec<String>
§coordinates: Vec<DisruptionCoordinates>
§stations: Vec<DisruptionStation>
§sections: Vec<DisruptionSection>
§effects: Vec<DisruptionEffect>
§period: DisruptionPeriod
§collective_report: bool
Trait Implementations§
Source§impl Clone for Disruption
impl Clone for Disruption
Source§fn clone(&self) -> Disruption
fn clone(&self) -> Disruption
Returns a copy 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 Disruption
impl Debug for Disruption
Source§impl<'de> Deserialize<'de> for Disruption
impl<'de> Deserialize<'de> for Disruption
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
Source§impl PartialEq for Disruption
impl PartialEq for Disruption
Source§impl Serialize for Disruption
impl Serialize for Disruption
impl StructuralPartialEq for Disruption
Auto Trait Implementations§
impl Freeze for Disruption
impl RefUnwindSafe for Disruption
impl Send for Disruption
impl Sync for Disruption
impl Unpin for Disruption
impl UnwindSafe for Disruption
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