pub struct GTFSAttribution {
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: Option<String>,
pub is_operator: Option<String>,
pub is_authority: Option<String>,
pub attribution_url: Option<String>,
pub attribution_email: Option<String>,
pub attribution_phone: Option<String>,
}Expand description
§Attributions
Optional
Defines the attributions applied to the dataset or parts of it.
If agency_id, route_id, or trip_id is specified, the attribution
applies only to that entity. If none are specified, the attribution
applies to the entire dataset.
Primary Key: (attribution_id) - optional
Fields§
§attribution_id: Option<String>Optional Unique ID that identifies this attribution record. Useful if multiple attributions exist or for referencing translations.
agency_id: Option<String>Optional
Agency to which this attribution applies (agency.agency_id).
Must be empty if route_id or trip_id are specified.
route_id: Option<String>Optional
Route to which this attribution applies (routes.route_id).
Must be empty if agency_id or trip_id are specified.
trip_id: Option<String>Optional
Trip to which this attribution applies (trips.trip_id).
Must be empty if agency_id or route_id are specified.
organization_name: StringRequired Organization name to which the dataset is attributed.
is_producer: Option<String>Optional 0 or empty = Not a producer, 1 = Is a producer
is_operator: Option<String>Optional 0 or empty = Not an operator, 1 = Is an operator
Optional 0 or empty = Not an authority, 1 = Is an authority
attribution_url: Option<String>Optional URL of the organization.
attribution_email: Option<String>Optional Email of the organization.
attribution_phone: Option<String>Optional Phone number of the organization.
Implementations§
Source§impl GTFSAttribution
impl GTFSAttribution
Sourcepub fn is_producer(&self) -> bool
pub fn is_producer(&self) -> bool
Check if is_producer is true
Sourcepub fn is_operator(&self) -> bool
pub fn is_operator(&self) -> bool
Check if is_operator is true
Check if is_authority is true
Trait Implementations§
Source§impl Clone for GTFSAttribution
impl Clone for GTFSAttribution
Source§fn clone(&self) -> GTFSAttribution
fn clone(&self) -> GTFSAttribution
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GTFSAttribution
impl Debug for GTFSAttribution
Source§impl Default for GTFSAttribution
impl Default for GTFSAttribution
Source§fn default() -> GTFSAttribution
fn default() -> GTFSAttribution
Source§impl From<&Map<String, ValueType>> for GTFSAttribution
Starting from a ref to an MValue, convert to a struct
impl From<&Map<String, ValueType>> for GTFSAttribution
Starting from a ref to an MValue, convert to a struct
Source§impl From<&ValueType> for GTFSAttribution
If this struct ref is nested into another struct, pull out the MValue and let
From handle
impl From<&ValueType> for GTFSAttribution
If this struct ref is nested into another struct, pull out the MValue and let
From
Source§impl From<GTFSAttribution> for MValue
Starting from a struct, convert to an MValue
impl From<GTFSAttribution> for MValue
Starting from a struct, convert to an MValue
Source§fn from(value: GTFSAttribution) -> MValue
fn from(value: GTFSAttribution) -> MValue
Source§impl From<GTFSAttribution> for ValueType
If this struct is nested into another struct, convert to a ValueType that’s nested
impl From<GTFSAttribution> for ValueType
If this struct is nested into another struct, convert to a ValueType that’s nested
Source§fn from(value: GTFSAttribution) -> ValueType
fn from(value: GTFSAttribution) -> ValueType
Source§impl From<Map<String, ValueType>> for GTFSAttribution
Starting from an MValue, convert to a struct
impl From<Map<String, ValueType>> for GTFSAttribution
Starting from an MValue, convert to a struct
Source§impl From<ValueType> for GTFSAttribution
If this struct is nested into another struct, pull out the MValue and let
From handle
impl From<ValueType> for GTFSAttribution
If this struct is nested into another struct, pull out the MValue and let
From
Source§impl PartialEq for GTFSAttribution
impl PartialEq for GTFSAttribution
impl MValueCompatible for GTFSAttribution
Finally implement the MValueCompatible trait
impl StructuralPartialEq for GTFSAttribution
Auto Trait Implementations§
impl Freeze for GTFSAttribution
impl RefUnwindSafe for GTFSAttribution
impl Send for GTFSAttribution
impl Sync for GTFSAttribution
impl Unpin for GTFSAttribution
impl UnwindSafe for GTFSAttribution
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().