pub struct EntityMetadataSpec<'a> {
pub id: EntityId<'a>,
pub node_id: NodeId<'a>,
pub kind: EntityKind,
pub source_name: &'a str,
pub type_name: &'static str,
pub type_hash: &'static str,
pub qos: QoSProfile,
}Expand description
Inputs for entity_metadata. Collapses the seven positional
arguments — three of them adjacent &str (source_name /
type_name / type_hash) that are trivially transposable at a
call site — into one named-field struct.
phase-308 — pub alongside MetadataRecorder::push_entity: metadata-mode
adapters for other languages build entities through this ONE constructor so
the defaults (and therefore the recorded shape) cannot diverge per language.
Fields§
§id: EntityId<'a>§node_id: NodeId<'a>§kind: EntityKind§source_name: &'a str§type_name: &'static str§type_hash: &'static str§qos: QoSProfileAuto Trait Implementations§
impl<'a> Freeze for EntityMetadataSpec<'a>
impl<'a> RefUnwindSafe for EntityMetadataSpec<'a>
impl<'a> Send for EntityMetadataSpec<'a>
impl<'a> Sync for EntityMetadataSpec<'a>
impl<'a> Unpin for EntityMetadataSpec<'a>
impl<'a> UnsafeUnpin for EntityMetadataSpec<'a>
impl<'a> UnwindSafe for EntityMetadataSpec<'a>
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