Struct transit_model::objects::Network
source · pub struct Network {
pub id: String,
pub name: String,
pub url: Option<String>,
pub codes: KeysValues,
pub timezone: Option<Tz>,
pub lang: Option<String>,
pub phone: Option<String>,
pub address: Option<String>,
pub sort_order: Option<u32>,
}
Fields§
§id: String
§name: String
§url: Option<String>
§codes: KeysValues
§timezone: Option<Tz>
§lang: Option<String>
§phone: Option<String>
§address: Option<String>
§sort_order: Option<u32>
Trait Implementations§
source§impl AddPrefix for Network
impl AddPrefix for Network
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 Network
impl Codes for Network
fn codes(&self) -> &KeysValues
fn codes_mut(&mut self) -> &mut KeysValues
source§impl<'de> Deserialize<'de> for Network
impl<'de> Deserialize<'de> for Network
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<Network> for IdxSet<CommercialMode>
impl GetCorresponding<Network> for IdxSet<CommercialMode>
source§impl GetCorresponding<Network> for IdxSet<Contributor>
impl GetCorresponding<Network> for IdxSet<Contributor>
source§impl GetCorresponding<Network> for IdxSet<PhysicalMode>
impl GetCorresponding<Network> for IdxSet<PhysicalMode>
source§impl GetCorresponding<Network> for IdxSet<VehicleJourney>
impl GetCorresponding<Network> for IdxSet<VehicleJourney>
source§impl GetObjectType for Network
impl GetObjectType for Network
fn get_object_type() -> ObjectType
source§impl PartialEq<Network> for Network
impl PartialEq<Network> for Network
impl Eq for Network
impl StructuralEq for Network
impl StructuralPartialEq for Network
Auto Trait Implementations§
impl RefUnwindSafe for Network
impl Send for Network
impl Sync for Network
impl Unpin for Network
impl UnwindSafe for Network
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