Struct psibase::Definition
source · pub struct Definition<String>where
String: Reflect,{
pub name: String,
pub alias: Option<TypeRef<String>>,
pub structFields: Option<Vec<Field<String>>>,
pub unionFields: Option<Vec<Field<String>>>,
pub customJson: Option<bool>,
pub definitionWillNotChange: Option<bool>,
pub methods: Option<Vec<Method<String>>>,
}Fields§
§name: String§alias: Option<TypeRef<String>>§structFields: Option<Vec<Field<String>>>§unionFields: Option<Vec<Field<String>>>§customJson: Option<bool>§definitionWillNotChange: Option<bool>§methods: Option<Vec<Method<String>>>Trait Implementations§
source§impl<String> Clone for Definition<String>
impl<String> Clone for Definition<String>
source§fn clone(&self) -> Definition<String>
fn clone(&self) -> Definition<String>
Returns a copy 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 moresource§impl<String> Debug for Definition<String>
impl<String> Debug for Definition<String>
source§impl<String> Default for Definition<String>
impl<String> Default for Definition<String>
source§fn default() -> Definition<String>
fn default() -> Definition<String>
Returns the “default value” for a type. Read more
source§impl<'de, String> Deserialize<'de> for Definition<String>where
String: Reflect + Deserialize<'de>,
impl<'de, String> Deserialize<'de> for Definition<String>where
String: Reflect + 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<String> Reflect for Definition<String>where
String: Reflect,
impl<String> Reflect for Definition<String>where
String: Reflect,
type StaticType = Definition<<String as Reflect>::StaticType>
fn reflect<V: Visitor>(visitor: V) -> V::Return
Auto Trait Implementations§
impl<String> RefUnwindSafe for Definition<String>where
String: RefUnwindSafe,
impl<String> Send for Definition<String>where
String: Send,
impl<String> Sync for Definition<String>where
String: Sync,
impl<String> Unpin for Definition<String>where
String: Unpin,
impl<String> UnwindSafe for Definition<String>where
String: 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