Struct transit_model::objects::Contributor
source · pub struct Contributor {
pub id: String,
pub name: String,
pub license: Option<String>,
pub website: Option<String>,
}
Fields§
§id: String
§name: String
§license: Option<String>
§website: Option<String>
Trait Implementations§
source§impl AddPrefix for Contributor
impl AddPrefix for Contributor
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 Debug for Contributor
impl Debug for Contributor
source§impl Default for Contributor
impl Default for Contributor
source§fn default() -> Contributor
fn default() -> Contributor
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Contributor
impl<'de> Deserialize<'de> for Contributor
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<Contributor> for IdxSet<Calendar>
impl GetCorresponding<Contributor> for IdxSet<Calendar>
source§fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<Contributor>
fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<Contributor>
For the given self, returns the set of
corresponding
T
indices.source§impl GetCorresponding<Contributor> for IdxSet<CommercialMode>
impl GetCorresponding<Contributor> for IdxSet<CommercialMode>
source§fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<Contributor>
fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<Contributor>
For the given self, returns the set of
corresponding
T
indices.source§impl GetCorresponding<Contributor> for IdxSet<Company>
impl GetCorresponding<Contributor> for IdxSet<Company>
source§fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<Contributor>
fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<Contributor>
For the given self, returns the set of
corresponding
T
indices.source§impl GetCorresponding<Contributor> for IdxSet<Contributor>
impl GetCorresponding<Contributor> for IdxSet<Contributor>
source§fn get_corresponding(&self, _: &Model) -> IdxSet<Contributor>
fn get_corresponding(&self, _: &Model) -> IdxSet<Contributor>
For the given self, returns the set of
corresponding
T
indices.source§impl GetCorresponding<Contributor> for IdxSet<Dataset>
impl GetCorresponding<Contributor> for IdxSet<Dataset>
source§fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<Contributor>
fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<Contributor>
For the given self, returns the set of
corresponding
T
indices.source§impl GetCorresponding<Contributor> for IdxSet<Line>
impl GetCorresponding<Contributor> for IdxSet<Line>
source§fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<Contributor>
fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<Contributor>
For the given self, returns the set of
corresponding
T
indices.source§impl GetCorresponding<Contributor> for IdxSet<Network>
impl GetCorresponding<Contributor> for IdxSet<Network>
source§fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<Contributor>
fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<Contributor>
For the given self, returns the set of
corresponding
T
indices.source§impl GetCorresponding<Contributor> for IdxSet<PhysicalMode>
impl GetCorresponding<Contributor> for IdxSet<PhysicalMode>
source§fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<Contributor>
fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<Contributor>
For the given self, returns the set of
corresponding
T
indices.source§impl GetCorresponding<Contributor> for IdxSet<Route>
impl GetCorresponding<Contributor> for IdxSet<Route>
source§fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<Contributor>
fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<Contributor>
For the given self, returns the set of
corresponding
T
indices.source§impl GetCorresponding<Contributor> for IdxSet<StopArea>
impl GetCorresponding<Contributor> for IdxSet<StopArea>
source§fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<Contributor>
fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<Contributor>
For the given self, returns the set of
corresponding
T
indices.source§impl GetCorresponding<Contributor> for IdxSet<StopPoint>
impl GetCorresponding<Contributor> for IdxSet<StopPoint>
source§fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<Contributor>
fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<Contributor>
For the given self, returns the set of
corresponding
T
indices.source§impl GetCorresponding<Contributor> for IdxSet<Transfer>
impl GetCorresponding<Contributor> for IdxSet<Transfer>
source§fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<Contributor>
fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<Contributor>
For the given self, returns the set of
corresponding
T
indices.source§impl GetCorresponding<Contributor> for IdxSet<VehicleJourney>
impl GetCorresponding<Contributor> for IdxSet<VehicleJourney>
source§fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<Contributor>
fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<Contributor>
For the given self, returns the set of
corresponding
T
indices.source§impl Id<Contributor> for Contributor
impl Id<Contributor> for Contributor
source§impl Id<Contributor> for Dataset
impl Id<Contributor> for Dataset
source§impl PartialEq<Contributor> for Contributor
impl PartialEq<Contributor> for Contributor
source§fn eq(&self, other: &Contributor) -> bool
fn eq(&self, other: &Contributor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Contributor
impl Serialize for Contributor
source§impl WithId for Contributor
impl WithId for Contributor
impl Eq for Contributor
impl StructuralEq for Contributor
impl StructuralPartialEq for Contributor
Auto Trait Implementations§
impl RefUnwindSafe for Contributor
impl Send for Contributor
impl Sync for Contributor
impl Unpin for Contributor
impl UnwindSafe for Contributor
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