#[repr(i32)]pub enum Effect {
NoService = 1,
ReducedService = 2,
SignificantDelays = 3,
Detour = 4,
AdditionalService = 5,
ModifiedService = 6,
OtherEffect = 7,
UnknownEffect = 8,
StopMoved = 9,
NoEffect = 10,
AccessibilityIssue = 11,
}
Expand description
What is the effect of this problem on the affected entity. If effect_detail is included, then Effect must also be included.
Variants§
NoService = 1
ReducedService = 2
SignificantDelays = 3
We don’t care about INsignificant delays: they are hard to detect, have little impact on the user, and would clutter the results as they are too frequent.
Detour = 4
AdditionalService = 5
ModifiedService = 6
OtherEffect = 7
UnknownEffect = 8
StopMoved = 9
NoEffect = 10
AccessibilityIssue = 11
Implementations§
Source§impl Effect
impl Effect
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Effect
impl<'de> Deserialize<'de> for Effect
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 Ord for Effect
impl Ord for Effect
Source§impl PartialOrd for Effect
impl PartialOrd for Effect
impl Copy for Effect
impl Eq for Effect
impl StructuralPartialEq for Effect
Auto Trait Implementations§
impl Freeze for Effect
impl RefUnwindSafe for Effect
impl Send for Effect
impl Sync for Effect
impl Unpin for Effect
impl UnwindSafe for Effect
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