pub struct ComplexType {
pub decorators: Vec<TypeDecorators>,
pub ty: String,
}
Fields§
§decorators: Vec<TypeDecorators>
use option to avoid memory allocation sometimes
ty: String
Implementations§
Source§impl ComplexType
impl ComplexType
pub fn no_decorators(ty: String) -> Self
pub fn string() -> Self
Trait Implementations§
Source§impl Clone for ComplexType
impl Clone for ComplexType
Source§fn clone(&self) -> ComplexType
fn clone(&self) -> ComplexType
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 Debug for ComplexType
impl Debug for ComplexType
Source§impl<'de> Deserialize<'de> for ComplexType
impl<'de> Deserialize<'de> for ComplexType
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 Display for ComplexType
impl Display for ComplexType
Source§impl From<ComplexType> for TypeDefine
impl From<ComplexType> for TypeDefine
Source§fn from(v: ComplexType) -> Self
fn from(v: ComplexType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ComplexType
impl PartialEq for ComplexType
Source§impl Serialize for ComplexType
impl Serialize for ComplexType
Source§impl TryFrom<TypeDefine> for ComplexType
impl TryFrom<TypeDefine> for ComplexType
Source§type Error = TypeDefine
type Error = TypeDefine
The type returned in the event of a conversion error.
impl StructuralPartialEq for ComplexType
Auto Trait Implementations§
impl Freeze for ComplexType
impl RefUnwindSafe for ComplexType
impl Send for ComplexType
impl Sync for ComplexType
impl Unpin for ComplexType
impl UnwindSafe for ComplexType
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