Struct transit_model::objects::Line
source · pub struct Line {Show 16 fields
pub id: String,
pub code: Option<String>,
pub codes: KeysValues,
pub object_properties: PropertiesMap,
pub comment_links: CommentLinksT,
pub name: String,
pub forward_name: Option<String>,
pub backward_name: Option<String>,
pub color: Option<Rgb>,
pub text_color: Option<Rgb>,
pub sort_order: Option<u32>,
pub network_id: String,
pub commercial_mode_id: String,
pub geometry_id: Option<String>,
pub opening_time: Option<Time>,
pub closing_time: Option<Time>,
}
Fields§
§id: String
§code: Option<String>
§codes: KeysValues
§object_properties: PropertiesMap
§comment_links: CommentLinksT
§name: String
§forward_name: Option<String>
§backward_name: Option<String>
§color: Option<Rgb>
§text_color: Option<Rgb>
§sort_order: Option<u32>
§network_id: String
§commercial_mode_id: String
§geometry_id: Option<String>
§opening_time: Option<Time>
§closing_time: Option<Time>
Trait Implementations§
source§impl AddPrefix for Line
impl AddPrefix for Line
source§fn prefix(&mut self, prefix_conf: &PrefixConfiguration)
fn prefix(&mut self, prefix_conf: &PrefixConfiguration)
Add the prefix to all elements of the object that needs to be prefixed.
PrefixConfiguration contains all the needed metadata to create the
complete prefix.
source§fn add_prefix(&mut self, prefix: &str)
fn add_prefix(&mut self, prefix: &str)
👎Deprecated since 0.24.0: please use
AddPrefix::prefix()
insteadAdd the prefix to all elements of the object that needs to be prefixed.
source§fn add_prefix_with_sep(&mut self, prefix: &str, sep: &str)
fn add_prefix_with_sep(&mut self, prefix: &str, sep: &str)
👎Deprecated since 0.24.0: please use
AddPrefix::prefix()
insteadAdd the prefix to all elements of the object that needs to be prefixed.
A separator will be placed between the prefix and the identifier.
source§impl Codes for Line
impl Codes for Line
fn codes(&self) -> &KeysValues
fn codes_mut(&mut self) -> &mut KeysValues
source§impl CommentLinks for Line
impl CommentLinks for Line
fn comment_links(&self) -> &CommentLinksT
fn comment_links_mut(&mut self) -> &mut CommentLinksT
source§impl<'de> Deserialize<'de> for Line
impl<'de> Deserialize<'de> for Line
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 GetCorresponding<Line> for IdxSet<CommercialMode>
impl GetCorresponding<Line> for IdxSet<CommercialMode>
source§impl GetCorresponding<Line> for IdxSet<Contributor>
impl GetCorresponding<Line> for IdxSet<Contributor>
source§impl GetCorresponding<Line> for IdxSet<PhysicalMode>
impl GetCorresponding<Line> for IdxSet<PhysicalMode>
source§impl GetCorresponding<Line> for IdxSet<VehicleJourney>
impl GetCorresponding<Line> for IdxSet<VehicleJourney>
source§impl GetObjectType for Line
impl GetObjectType for Line
fn get_object_type() -> ObjectType
source§impl Id<CommercialMode> for Line
impl Id<CommercialMode> for Line
source§impl Id<Line> for GridRelCalendarLine
impl Id<Line> for GridRelCalendarLine
source§impl PartialEq<Line> for Line
impl PartialEq<Line> for Line
source§impl Properties for Line
impl Properties for Line
fn properties(&self) -> &PropertiesMap
fn properties_mut(&mut self) -> &mut PropertiesMap
impl Eq for Line
impl StructuralEq for Line
impl StructuralPartialEq for Line
Auto Trait Implementations§
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnwindSafe for Line
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