pub struct Attribution {
pub attribution_id: Option<String>,
pub agency_id: Option<String>,
pub route_id: Option<String>,
pub trip_id: Option<String>,
pub organization_name: String,
pub is_producer: bool,
pub is_operator: bool,
pub is_authority: bool,
pub attribution_url: Option<String>,
pub attribution_email: Option<String>,
pub attribution_phone: Option<String>,
}Expand description
Attribution for a dataset
Fields§
§attribution_id: Option<String>Identifies an attribution for the dataset or a subset of it. This is mostly useful for translations.
agency_id: Option<String>Agency to which the attribution applies.
route_id: Option<String>Route to which the attribution applies.
trip_id: Option<String>Trip to which the attribution applies.
organization_name: StringName of the organization that the dataset is attributed to.
is_producer: boolWhether the organization is the producer
is_operator: boolWhether the organization is the operator
Whether the organization is a transport authority
attribution_url: Option<String>URL of the organization.
attribution_email: Option<String>Email of the organization.
attribution_phone: Option<String>Phone number of the organization.
Trait Implementations§
Source§impl Clone for Attribution
impl Clone for Attribution
Source§fn clone(&self) -> Attribution
fn clone(&self) -> Attribution
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Attribution
impl Debug for Attribution
Source§impl Default for Attribution
impl Default for Attribution
Source§fn default() -> Attribution
fn default() -> Attribution
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Attribution
impl<'de> Deserialize<'de> for Attribution
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
Auto Trait Implementations§
impl Freeze for Attribution
impl RefUnwindSafe for Attribution
impl Send for Attribution
impl Sync for Attribution
impl Unpin for Attribution
impl UnsafeUnpin for Attribution
impl UnwindSafe for Attribution
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