[][src]Struct boxcars::NewActor

pub struct NewActor {
    pub actor_id: ActorId,
    pub name_id: Option<i32>,
    pub object_id: ObjectId,
    pub initial_trajectory: Trajectory,
}

Information for a new actor that appears in the game

Fields

actor_id: ActorId

The id given to the new actor

name_id: Option<i32>

An name id

object_id: ObjectId

The actor's object id.

initial_trajectory: Trajectory

The initial trajectory of the new actor

Trait Implementations

impl Clone for NewActor[src]

impl Copy for NewActor[src]

impl Debug for NewActor[src]

impl Eq for NewActor[src]

impl PartialEq<NewActor> for NewActor[src]

impl Serialize for NewActor[src]

impl StructuralEq for NewActor[src]

impl StructuralPartialEq for NewActor[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.