Struct yy_typings::object_yy::ObjectEvent[][src]

pub struct ObjectEvent {
    pub is_dn_d: bool,
    pub event_type: EventType,
    pub collision_object_id: Option<FilesystemPath>,
    pub resource_version: ResourceVersion,
    pub name: Option<String>,
    pub tags: Tags,
    pub resource_type: ConstGmEvent,
}

Fields

is_dn_d: bool

Is this event used in DragNDrop, the thing no one uses?

event_type: EventType

The type of the event. In the JSON, this is represented with two enums, but we use Serde to succesfully parse this into idiomatic Rust enums.

collision_object_id: Option<FilesystemPath>

The Id of the thing to collide with.

resource_version: ResourceVersion

The version of the .yy file.

name: Option<String>

The “name” of the Event, which appears to always be null or an empty string

tags: Tags

The tags for the event, which probably should always be empty.

resource_type: ConstGmEvent

The constant resource type for GmEvents.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Return ObjectEvent { is_dn_d: Default::default(), event_type: Default::default(), collision_object_id: Default::default(), resource_version: Default::default(), name: Default::default(), tags: Default::default(), resource_type: Default::default() }

Deserialize this value from the given Serde deserializer. Read more

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.