pub struct TrajectoryEvent {
pub session_id: String,
pub at: u64,
pub kind: TrajectoryEventKind,
}Expand description
单条轨迹事件:会话 id + 发生时间 + 具体事件。
Fields§
§session_id: String§at: u64§kind: TrajectoryEventKindImplementations§
Source§impl TrajectoryEvent
impl TrajectoryEvent
pub fn new(session_id: &str, kind: TrajectoryEventKind) -> Self
Trait Implementations§
Source§impl Clone for TrajectoryEvent
impl Clone for TrajectoryEvent
Source§fn clone(&self) -> TrajectoryEvent
fn clone(&self) -> TrajectoryEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TrajectoryEvent
impl Debug for TrajectoryEvent
Source§impl<'de> Deserialize<'de> for TrajectoryEvent
impl<'de> Deserialize<'de> for TrajectoryEvent
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 TrajectoryEvent
impl RefUnwindSafe for TrajectoryEvent
impl Send for TrajectoryEvent
impl Sync for TrajectoryEvent
impl Unpin for TrajectoryEvent
impl UnsafeUnpin for TrajectoryEvent
impl UnwindSafe for TrajectoryEvent
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