Struct transit_model::objects::PriceV1
source · pub struct PriceV1 {
pub id: String,
pub start_date: NaiveDate,
pub end_date: NaiveDate,
pub price: u32,
pub name: String,
pub ignored: String,
pub comment: String,
pub currency_type: Option<String>,
}
Fields§
§id: String
§start_date: NaiveDate
§end_date: NaiveDate
§price: u32
§name: String
§ignored: String
§comment: String
§currency_type: Option<String>
Trait Implementations§
source§impl AddPrefix for PriceV1
impl AddPrefix for PriceV1
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<'de> Deserialize<'de> for PriceV1
impl<'de> Deserialize<'de> for PriceV1
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 Ord for PriceV1
impl Ord for PriceV1
source§impl PartialEq<PriceV1> for PriceV1
impl PartialEq<PriceV1> for PriceV1
source§impl PartialOrd<PriceV1> for PriceV1
impl PartialOrd<PriceV1> for PriceV1
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for PriceV1
impl StructuralEq for PriceV1
impl StructuralPartialEq for PriceV1
Auto Trait Implementations§
impl RefUnwindSafe for PriceV1
impl Send for PriceV1
impl Sync for PriceV1
impl Unpin for PriceV1
impl UnwindSafe for PriceV1
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