Struct yy_typings::object_yy::ObjectEvent
source · [−]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
sourceimpl Clone for ObjectEvent
impl Clone for ObjectEvent
sourcefn clone(&self) -> ObjectEvent
fn clone(&self) -> ObjectEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ObjectEvent
impl Debug for ObjectEvent
sourceimpl Default for ObjectEvent
impl Default for ObjectEvent
sourceimpl<'de> Deserialize<'de> for ObjectEvent
impl<'de> Deserialize<'de> for ObjectEvent
sourcefn 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
sourceimpl Ord for ObjectEvent
impl Ord for ObjectEvent
sourceimpl PartialEq<ObjectEvent> for ObjectEvent
impl PartialEq<ObjectEvent> for ObjectEvent
sourcefn eq(&self, other: &ObjectEvent) -> bool
fn eq(&self, other: &ObjectEvent) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ObjectEvent) -> bool
fn ne(&self, other: &ObjectEvent) -> bool
This method tests for !=
.
sourceimpl PartialOrd<ObjectEvent> for ObjectEvent
impl PartialOrd<ObjectEvent> for ObjectEvent
sourcefn partial_cmp(&self, other: &ObjectEvent) -> Option<Ordering>
fn partial_cmp(&self, other: &ObjectEvent) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Serialize for ObjectEvent
impl Serialize for ObjectEvent
impl Eq for ObjectEvent
impl StructuralEq for ObjectEvent
impl StructuralPartialEq for ObjectEvent
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more