pub struct CollectionMod {
pub actions: Vec<Ident>,
pub get_action_fns: Vec<ActionFn>,
pub post_action_fns: Vec<ActionFn>,
pub name: Ident,
pub collection_mod: ItemMod,
}Fields§
§actions: Vec<Ident>§get_action_fns: Vec<ActionFn>§post_action_fns: Vec<ActionFn>§name: Ident§collection_mod: ItemModTrait Implementations§
Source§impl Debug for CollectionMod
impl Debug for CollectionMod
Source§impl From<&CollectionMod> for TokenStream
impl From<&CollectionMod> for TokenStream
Source§fn from(collection_mod: &CollectionMod) -> Self
fn from(collection_mod: &CollectionMod) -> Self
Converts to this type from the input type.
Source§impl Parse for CollectionMod
impl Parse for CollectionMod
fn parse(input: ParseStream<'_>) -> ParseResult<Self>
Source§impl ToTokens for CollectionMod
impl ToTokens for CollectionMod
Source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
Auto Trait Implementations§
impl !Send for CollectionMod
impl !Sync for CollectionMod
impl Freeze for CollectionMod
impl RefUnwindSafe for CollectionMod
impl Unpin for CollectionMod
impl UnsafeUnpin for CollectionMod
impl UnwindSafe for CollectionMod
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> Spanned for Twhere
T: Spanned + ?Sized,
impl<T> Spanned for Twhere
T: Spanned + ?Sized,
Source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span covering the complete contents of this syntax tree
node, or Span::call_site() if this node is empty.