pub struct PartReference {
pub context_id: String,
pub context_type: ContextType,
pub resource_id: String,
pub resource_type: ResourceType,
}Expand description
PartReference : reference to a fare or offerPart
Fields§
§context_id: String§context_type: ContextType§resource_id: String§resource_type: ResourceTypeImplementations§
Source§impl PartReference
impl PartReference
Sourcepub fn new(
context_id: String,
context_type: ContextType,
resource_id: String,
resource_type: ResourceType,
) -> PartReference
pub fn new( context_id: String, context_type: ContextType, resource_id: String, resource_type: ResourceType, ) -> PartReference
reference to a fare or offerPart
Trait Implementations§
Source§impl Clone for PartReference
impl Clone for PartReference
Source§fn clone(&self) -> PartReference
fn clone(&self) -> PartReference
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 PartReference
impl Debug for PartReference
Source§impl Default for PartReference
impl Default for PartReference
Source§fn default() -> PartReference
fn default() -> PartReference
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PartReference
impl<'de> Deserialize<'de> for PartReference
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 PartReference
impl PartialEq for PartReference
Source§impl Serialize for PartReference
impl Serialize for PartReference
impl StructuralPartialEq for PartReference
Auto Trait Implementations§
impl Freeze for PartReference
impl RefUnwindSafe for PartReference
impl Send for PartReference
impl Sync for PartReference
impl Unpin for PartReference
impl UnwindSafe for PartReference
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