pub enum ArgumentShape {
}Expand description
Syntactic argument contract, independent of generation and application policy.
Variants§
Marker
No arguments.
Value
A value, optionally named value.
OptionalValue
An optional value, optionally named value.
String(&'static [&'static str])
One string, optionally under one of these names.
OptionalString(&'static [&'static str])
An optional string, optionally under one of these names.
Lifecycle
A single scoped version member reference.
Version
A version marker, or in and name together.
ApiKey
Required in and name arguments.
Http
HTTP status on exceptions, or a marker on representation unions.
Named
Named arguments with the specified required and optional keys.
Fields
Values
One or more positional values, as accepted by target-specific derives.
Cors
Origins accepted by the HTTP CORS contract.
Deprecated
A deprecation marker with optional since and after metadata.
Grammar
Arguments already validated by the concrete IDL grammar.
Trait Implementations§
Source§impl Clone for ArgumentShape
impl Clone for ArgumentShape
impl Copy for ArgumentShape
Source§impl Debug for ArgumentShape
impl Debug for ArgumentShape
impl Eq for ArgumentShape
Source§impl PartialEq for ArgumentShape
impl PartialEq for ArgumentShape
impl StructuralPartialEq for ArgumentShape
Auto Trait Implementations§
impl Freeze for ArgumentShape
impl RefUnwindSafe for ArgumentShape
impl Send for ArgumentShape
impl Sync for ArgumentShape
impl Unpin for ArgumentShape
impl UnsafeUnpin for ArgumentShape
impl UnwindSafe for ArgumentShape
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.