Struct sway_types::JsonTypeDeclaration
source · [−]pub struct JsonTypeDeclaration {
pub type_id: usize,
pub type_field: String,
pub components: Option<Vec<JsonTypeApplication>>,
pub type_parameters: Option<Vec<usize>>,
}
Fields
type_id: usize
type_field: String
components: Option<Vec<JsonTypeApplication>>
type_parameters: Option<Vec<usize>>
Trait Implementations
sourceimpl Clone for JsonTypeDeclaration
impl Clone for JsonTypeDeclaration
sourcefn clone(&self) -> JsonTypeDeclaration
fn clone(&self) -> JsonTypeDeclaration
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for JsonTypeDeclaration
impl Debug for JsonTypeDeclaration
sourceimpl Default for JsonTypeDeclaration
impl Default for JsonTypeDeclaration
sourcefn default() -> JsonTypeDeclaration
fn default() -> JsonTypeDeclaration
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for JsonTypeDeclaration
impl<'de> Deserialize<'de> for JsonTypeDeclaration
sourcefn 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
sourceimpl Hash for JsonTypeDeclaration
impl Hash for JsonTypeDeclaration
sourceimpl PartialEq<JsonTypeDeclaration> for JsonTypeDeclaration
impl PartialEq<JsonTypeDeclaration> for JsonTypeDeclaration
sourceimpl Serialize for JsonTypeDeclaration
impl Serialize for JsonTypeDeclaration
impl Eq for JsonTypeDeclaration
impl StructuralEq for JsonTypeDeclaration
Auto Trait Implementations
impl RefUnwindSafe for JsonTypeDeclaration
impl Send for JsonTypeDeclaration
impl Sync for JsonTypeDeclaration
impl Unpin for JsonTypeDeclaration
impl UnwindSafe for JsonTypeDeclaration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more