Struct gtfs_structures::RawTranslation
source · pub struct RawTranslation {
pub table_name: String,
pub field_name: String,
pub language: String,
pub translation: String,
pub record_id: Option<String>,
pub record_sub_id: Option<String>,
pub field_value: Option<String>,
}
Expand description
Raw structure to hold translations as defined in the GTFS file. See https://gtfs.org/schedule/reference/#translationstxt
Fields§
§table_name: String
To which table does the translation apply
field_name: String
To which field does the translation apply
language: String
Language of the translation
translation: String
Translated value
record_id: Option<String>
The record identifier to translate. For stop_times, it’s the trip_id
record_sub_id: Option<String>
Only for stop_times: the stop_sequence
field_value: Option<String>
Translate all values that match exactly, instead of specifying individual records
Trait Implementations§
source§impl Clone for RawTranslation
impl Clone for RawTranslation
source§fn clone(&self) -> RawTranslation
fn clone(&self) -> RawTranslation
Returns a copy of the value. Read more
1.0.0 · 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 RawTranslation
impl Debug for RawTranslation
source§impl Default for RawTranslation
impl Default for RawTranslation
source§fn default() -> RawTranslation
fn default() -> RawTranslation
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for RawTranslation
impl<'de> Deserialize<'de> for RawTranslation
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 RawTranslation
impl RefUnwindSafe for RawTranslation
impl Send for RawTranslation
impl Sync for RawTranslation
impl Unpin for RawTranslation
impl UnwindSafe for RawTranslation
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