pub struct TypeMetadata {
pub name: &'static str,
pub description: &'static str,
pub properties: &'static [PropertyMetadata],
}Expand description
Metadata for a Shape type (struct), generated by derive macro at compile time.
Fields§
§name: &'static strType name as exposed to Shape (e.g., “Row”, “Trade”)
description: &'static strDescription extracted from struct doc comments
properties: &'static [PropertyMetadata]Property information for this type
Implementations§
Source§impl TypeMetadata
impl TypeMetadata
Sourcepub fn to_property_infos(&self) -> Vec<PropertyInfo>
pub fn to_property_infos(&self) -> Vec<PropertyInfo>
Convert to runtime PropertyInfo for LSP
Trait Implementations§
Source§impl Clone for TypeMetadata
impl Clone for TypeMetadata
Source§fn clone(&self) -> TypeMetadata
fn clone(&self) -> TypeMetadata
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 TypeMetadata
impl RefUnwindSafe for TypeMetadata
impl Send for TypeMetadata
impl Sync for TypeMetadata
impl Unpin for TypeMetadata
impl UnsafeUnpin for TypeMetadata
impl UnwindSafe for TypeMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more