Struct lta_models::train::train_service_alert::TrainServiceAlert
source · pub struct TrainServiceAlert {
pub status: TrainStatus,
pub affected_segments: Vec<AffectedSegment>,
pub message: Vec<TrainServiceAlertMessage>,
}
Fields§
§status: TrainStatus
§affected_segments: Vec<AffectedSegment>
§message: Vec<TrainServiceAlertMessage>
Trait Implementations§
source§impl Clone for TrainServiceAlert
impl Clone for TrainServiceAlert
source§fn clone(&self) -> TrainServiceAlert
fn clone(&self) -> TrainServiceAlert
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 TrainServiceAlert
impl Debug for TrainServiceAlert
source§impl<'de> Deserialize<'de> for TrainServiceAlert
impl<'de> Deserialize<'de> for TrainServiceAlert
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 From<TrainServiceAlertResp> for TrainServiceAlert
impl From<TrainServiceAlertResp> for TrainServiceAlert
source§fn from(data: TrainServiceAlertResp) -> Self
fn from(data: TrainServiceAlertResp) -> Self
Converts to this type from the input type.
source§impl PartialEq for TrainServiceAlert
impl PartialEq for TrainServiceAlert
source§fn eq(&self, other: &TrainServiceAlert) -> bool
fn eq(&self, other: &TrainServiceAlert) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TrainServiceAlert
impl Serialize for TrainServiceAlert
impl StructuralPartialEq for TrainServiceAlert
Auto Trait Implementations§
impl RefUnwindSafe for TrainServiceAlert
impl Send for TrainServiceAlert
impl Sync for TrainServiceAlert
impl Unpin for TrainServiceAlert
impl UnwindSafe for TrainServiceAlert
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