pub enum EmitShape {
List,
Create,
GetUpdate,
Delete,
}Expand description
The structural template a language binding uses to emit a method, independent of language.
Collapses the per-binding match request_type { … } dispatch (which Python, Node, and
TypeScript each repeated identically) into a single analysis decision. Each variant corresponds
to one emit-shape helper every binding already has (*_list_method_impl,
*_create_method_impl, *_get_update_method_impl, *_delete_method_impl).
Variants§
List
Streamed/collected list — returns the repeated item type. (List, or a custom GET named
List*.)
Create
Factory/create — body in, returns a (possibly unrelated) response message. (Create, or a
collection-style custom POST/PATCH factory like Generate*.)
GetUpdate
Get-or-update — path params (+ optional body), returns the resource/response. (Get,
Update, a resource-targeted custom POST/PATCH, or any other custom verb on a flat
service.)
Delete
Delete — path params, no response. (Delete.)
Trait Implementations§
impl Copy for EmitShape
impl Eq for EmitShape
impl StructuralPartialEq for EmitShape
Auto Trait Implementations§
impl Forget for EmitShape
impl Freeze for EmitShape
impl RefUnwindSafe for EmitShape
impl Send for EmitShape
impl Sync for EmitShape
impl Unpin for EmitShape
impl UnsafeUnpin for EmitShape
impl UnwindSafe for EmitShape
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
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
key and return true if they are equal.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> ⓘ
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> ⓘ
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