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