pub struct EventDetail {
pub summary: String,
pub requestor: String,
pub change: HistoryStatus,
pub resource: Box<Resource>,
}Fields§
§summary: Stringhuman readable description of the event
requestor: StringContains detailed information about who is calling the API. It can include information such as channel, organization, sales unit or workstation id and be used to configure e.g. the fare range provided to the caller. The content of the string is part of a bilateral contract by the two parties and not standardized by OSDM. It is recommend to encrypt the information transferred.
change: HistoryStatus§resource: Box<Resource>Implementations§
Source§impl EventDetail
impl EventDetail
pub fn new( summary: String, requestor: String, change: HistoryStatus, resource: Resource, ) -> EventDetail
Trait Implementations§
Source§impl Clone for EventDetail
impl Clone for EventDetail
Source§fn clone(&self) -> EventDetail
fn clone(&self) -> EventDetail
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 EventDetail
impl Debug for EventDetail
Source§impl Default for EventDetail
impl Default for EventDetail
Source§fn default() -> EventDetail
fn default() -> EventDetail
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EventDetail
impl<'de> Deserialize<'de> for EventDetail
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 EventDetail
impl PartialEq for EventDetail
Source§impl Serialize for EventDetail
impl Serialize for EventDetail
impl StructuralPartialEq for EventDetail
Auto Trait Implementations§
impl Freeze for EventDetail
impl RefUnwindSafe for EventDetail
impl Send for EventDetail
impl Sync for EventDetail
impl Unpin for EventDetail
impl UnwindSafe for EventDetail
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