pub struct TypeReference {
pub name: String,
pub arguments: Vec<TypeReference>,
}
Fields§
§name: String
§arguments: Vec<TypeReference>
References to actual types to use instead of the type parameters declared on the referred generic type
Implementations§
Source§impl TypeReference
impl TypeReference
pub fn new(name: impl Into<String>, arguments: Vec<TypeReference>) -> Self
pub fn name(&self) -> &str
pub fn arguments(&self) -> Iter<'_, TypeReference>
pub fn fallback_recursively(&mut self, schema: &Typespace)
pub fn fallback_once(&self, schema: &Typespace) -> Option<TypeReference>
Trait Implementations§
Source§impl Clone for TypeReference
impl Clone for TypeReference
Source§fn clone(&self) -> TypeReference
fn clone(&self) -> TypeReference
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 TypeReference
impl Debug for TypeReference
Source§impl<'de> Deserialize<'de> for TypeReference
impl<'de> Deserialize<'de> for TypeReference
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<&str> for TypeReference
impl From<&str> for TypeReference
Source§impl From<String> for TypeReference
impl From<String> for TypeReference
Source§impl Hash for TypeReference
impl Hash for TypeReference
Source§impl Ord for TypeReference
impl Ord for TypeReference
Source§fn cmp(&self, other: &TypeReference) -> Ordering
fn cmp(&self, other: &TypeReference) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TypeReference
impl PartialEq for TypeReference
Source§impl PartialOrd for TypeReference
impl PartialOrd for TypeReference
Source§impl Serialize for TypeReference
impl Serialize for TypeReference
Source§impl VisitMut for TypeReference
impl VisitMut for TypeReference
impl Eq for TypeReference
impl StructuralPartialEq for TypeReference
Auto Trait Implementations§
impl Freeze for TypeReference
impl RefUnwindSafe for TypeReference
impl Send for TypeReference
impl Sync for TypeReference
impl Unpin for TypeReference
impl UnwindSafe for TypeReference
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