pub struct ParamSurface {
pub name: String,
pub required: bool,
pub schema: Value,
pub ty: FieldType,
pub within: Option<String>,
}Expand description
One parameter of a verb.
Fields§
§name: String§required: bool§schema: ValueIts JSON Schema, from its type.
ty: FieldTypeIts type (FieldType), its named records and enums declared in
the surface’s types; left out of a file, and absent from one written
before parameters had it, when the schema says all there is.
within: Option<String>The parameter this one is a field of on the wire: a parameter that is a plain record
of named fields is published as those fields, and a call’s arguments for them travel
nested under its name again (nest_arguments).
Trait Implementations§
Source§impl Clone for ParamSurface
impl Clone for ParamSurface
Source§fn clone(&self) -> ParamSurface
fn clone(&self) -> ParamSurface
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ParamSurface
impl Debug for ParamSurface
Source§impl<'de> Deserialize<'de> for ParamSurface
impl<'de> Deserialize<'de> for ParamSurface
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ParamSurface, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ParamSurface, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ParamSurface
impl PartialEq for ParamSurface
Source§impl Serialize for ParamSurface
impl Serialize for ParamSurface
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ParamSurface
Auto Trait Implementations§
impl Forget for ParamSurface
impl Freeze for ParamSurface
impl Move for ParamSurface
impl RefUnwindSafe for ParamSurface
impl Send for ParamSurface
impl Sync for ParamSurface
impl Unpin for ParamSurface
impl UnsafeUnpin for ParamSurface
impl UnwindSafe for ParamSurface
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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