pub struct Api {
pub ident: Ident,
pub data: Data<ApiVariant, ApiField>,
pub attrs: Vec<Attribute>,
pub endpoint: Vec<Endpoint>,
pub result_is_stream: bool,
}
Fields§
§ident: Ident
§data: Data<ApiVariant, ApiField>
§attrs: Vec<Attribute>
§endpoint: Vec<Endpoint>
§result_is_stream: bool
returns a stream of bytes for this struct
Trait Implementations§
Source§impl FromDeriveInput for Api
impl FromDeriveInput for Api
Source§fn from_derive_input(__di: &DeriveInput) -> Result<Self>
fn from_derive_input(__di: &DeriveInput) -> Result<Self>
Create an instance from
syn::DeriveInput
, or return an error.Auto Trait Implementations§
impl Freeze for Api
impl RefUnwindSafe for Api
impl !Send for Api
impl !Sync for Api
impl Unpin for Api
impl UnwindSafe for Api
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