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
The tags for the event, which probably should always be empty.
resource_type: ConstGmEvent
The constant resource type for GmEvents.
Trait Implementations
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
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
Auto Trait Implementations
impl RefUnwindSafe for ObjectEvent
impl Send for ObjectEvent
impl Sync for ObjectEvent
impl Unpin for ObjectEvent
impl UnwindSafe for ObjectEvent
Blanket Implementations
Mutably borrows from an owned value. Read more