pub struct TripSection {
pub trip_id: String,
pub covered_section: Option<Box<Section>>,
}Expand description
TripSection : Part of a trip.
Fields§
§trip_id: String§covered_section: Option<Box<Section>>Implementations§
Source§impl TripSection
impl TripSection
Sourcepub fn new(trip_id: String) -> TripSection
pub fn new(trip_id: String) -> TripSection
Part of a trip.
Trait Implementations§
Source§impl Clone for TripSection
impl Clone for TripSection
Source§fn clone(&self) -> TripSection
fn clone(&self) -> TripSection
Returns a duplicate 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 TripSection
impl Debug for TripSection
Source§impl Default for TripSection
impl Default for TripSection
Source§fn default() -> TripSection
fn default() -> TripSection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TripSection
impl<'de> Deserialize<'de> for TripSection
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 PartialEq for TripSection
impl PartialEq for TripSection
Source§impl Serialize for TripSection
impl Serialize for TripSection
impl StructuralPartialEq for TripSection
Auto Trait Implementations§
impl Freeze for TripSection
impl RefUnwindSafe for TripSection
impl Send for TripSection
impl Sync for TripSection
impl Unpin for TripSection
impl UnwindSafe for TripSection
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