pub struct Ecs { /* private fields */ }Expand description
Meta-information specific to ECS.
Implementations§
Source§impl Ecs
impl Ecs
Sourcepub fn get_version(&self) -> &String
pub fn get_version(&self) -> &String
ECS version this event conforms to. ecs.version is a required field and must exist in all events.
When querying across multiple indices – which may conform to slightly different ECS versions – this field lets integrations adjust to the schema version of the events.
Sourcepub fn set_version(&mut self, version_arg: String)
pub fn set_version(&mut self, version_arg: String)
ECS version this event conforms to. ecs.version is a required field and must exist in all events.
When querying across multiple indices – which may conform to slightly different ECS versions – this field lets integrations adjust to the schema version of the events.
§Example
1.0.0
pub fn new(version_arg: String) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ecs
impl RefUnwindSafe for Ecs
impl Send for Ecs
impl Sync for Ecs
impl Unpin for Ecs
impl UnwindSafe for Ecs
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