pub struct RustTypeInfo {
pub crate_name: &'static str,
pub version: &'static str,
pub path: &'static str,
}Expand description
Information for the x-rust-type JSON Schema extension.
When an EngineSpec provides this,
generic types parameterized by that spec will include the
x-rust-type extension in their JSON Schema.
This describes only the spec type (the generic parameter).
The outer types (StepEvent, ProgressEvent, EventReport)
always live in oxide-update-engine-types and use the module
constants directly.
Fields§
§crate_name: &'static strThe crate that defines the spec type (e.g.
"oxide-update-engine-types" for GenericSpec, or
"my-crate" for a user-defined spec).
version: &'static strThe version requirement for the spec’s crate (e.g. "*").
path: &'static strThe full path to the spec type (e.g.
"oxide_update_engine_types::spec::GenericSpec" or
"my_crate::MySpec").
Trait Implementations§
Source§impl Clone for RustTypeInfo
impl Clone for RustTypeInfo
Source§fn clone(&self) -> RustTypeInfo
fn clone(&self) -> RustTypeInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RustTypeInfo
impl RefUnwindSafe for RustTypeInfo
impl Send for RustTypeInfo
impl Sync for RustTypeInfo
impl Unpin for RustTypeInfo
impl UnsafeUnpin for RustTypeInfo
impl UnwindSafe for RustTypeInfo
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