pub struct ClassDef {
pub name: String,
pub package: Option<String>,
pub version: Option<Version>,
pub props: Vec<VarDef>,
pub methods: Vec<usize>,
}
Expand description
Defines a class that is referenced in the edges.
Fields§
§name: String
The name of the class.
package: Option<String>
If this class was external, the name of the package.
version: Option<Version>
The version of the package that this class belongs to.
props: Vec<VarDef>
The properties in this class.
methods: Vec<usize>
The methods in this class. Note that these are references, since they are actually defined in the class.
Trait Implementations§
source§impl<'de> Deserialize<'de> for ClassDef
impl<'de> Deserialize<'de> for ClassDef
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 From<ClassState> for ClassDef
impl From<ClassState> for ClassDef
source§fn from(value: ClassState) -> Self
fn from(value: ClassState) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ClassDef
impl RefUnwindSafe for ClassDef
impl Send for ClassDef
impl Sync for ClassDef
impl Unpin for ClassDef
impl UnwindSafe for ClassDef
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request