pub struct FragExtensionMethod {
pub name: String,
pub this_type: String,
pub arity_min: usize,
pub arity_max: i64,
pub this_args: Option<Vec<String>>,
}Expand description
One extensionMethods entry. Serialized field order (name, thisType,
arityMin, arityMax, thisArgs) is significant, and serde emits struct
fields in declaration order. The two arity halves are NOT optional: they joined the
schema with the v6 cache rename, so no fragment this reader can meet is
missing them. arity_max is signed because -1 is the unbounded-params
sentinel.
Fields§
§name: StringThe name value.
this_type: StringThe this type value.
arity_min: usizeThe arity min value.
arity_max: i64The arity max value.
this_args: Option<Vec<String>>Present only when the this-parameter type is generic (the key is omitted key otherwise), so a non-generic entry keeps four fields exactly.
Trait Implementations§
Source§impl Clone for FragExtensionMethod
impl Clone for FragExtensionMethod
Source§impl Debug for FragExtensionMethod
impl Debug for FragExtensionMethod
Source§impl<'de> Deserialize<'de> for FragExtensionMethod
impl<'de> Deserialize<'de> for FragExtensionMethod
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 PartialEq for FragExtensionMethod
impl PartialEq for FragExtensionMethod
Source§impl Serialize for FragExtensionMethod
impl Serialize for FragExtensionMethod
impl StructuralPartialEq for FragExtensionMethod
Auto Trait Implementations§
impl Freeze for FragExtensionMethod
impl RefUnwindSafe for FragExtensionMethod
impl Send for FragExtensionMethod
impl Sync for FragExtensionMethod
impl Unpin for FragExtensionMethod
impl UnsafeUnpin for FragExtensionMethod
impl UnwindSafe for FragExtensionMethod
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more