pub struct Qualified<T> {
pub id: GlobalId,
pub item: T,
}Expand description
One item, under the qualified id the engine addresses it by.
A plugin only ever deals in its own NativeId; qualifying one is the engine’s job,
so this type is the engine’s and a plugin never constructs one.
Fields§
§id: GlobalId<source>:<native>, the form a user types back at the command line.
item: TThe item as its source reported it, unchanged.
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for Qualified<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Qualified<T>where
T: Deserialize<'de>,
Source§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
Source§impl<T> JsonSchema for Qualified<T>where
T: JsonSchema,
impl<T> JsonSchema for Qualified<T>where
T: JsonSchema,
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl<T: PartialEq> StructuralPartialEq for Qualified<T>
Auto Trait Implementations§
impl<T> Freeze for Qualified<T>where
T: Freeze,
impl<T> RefUnwindSafe for Qualified<T>where
T: RefUnwindSafe,
impl<T> Send for Qualified<T>where
T: Send,
impl<T> Sync for Qualified<T>where
T: Sync,
impl<T> Unpin for Qualified<T>where
T: Unpin,
impl<T> UnsafeUnpin for Qualified<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Qualified<T>where
T: UnwindSafe,
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