pub struct ServiceTrait {
pub attributes: Any<RawAttribute>,
pub vis: Optional<Visibility>,
pub _trait: KTrait,
pub name: Ident,
pub generics: Optional<GenericParams>,
pub body: BraceGroupContaining<Any<ServiceMethod>>,
pub _eos: EndOfStream,
}Fields§
§attributes: Any<RawAttribute>§vis: Optional<Visibility>§_trait: KTrait§name: Ident§generics: Optional<GenericParams>§body: BraceGroupContaining<Any<ServiceMethod>>§_eos: EndOfStreamImplementations§
Source§impl ServiceTrait
impl ServiceTrait
Trait Implementations§
Source§impl Debug for ServiceTrait
impl Debug for ServiceTrait
Source§impl Parser for ServiceTrait
impl Parser for ServiceTrait
Source§impl ToTokens for ServiceTrait
impl ToTokens for ServiceTrait
Source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Source§fn to_token_iter(&self) -> TokenIter
fn to_token_iter(&self) -> TokenIter
Convert
&self into a TokenIter object.Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Convert
&self into a TokenStream object.Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
Convert
self into a TokenStream object.Auto Trait Implementations§
impl Freeze for ServiceTrait
impl RefUnwindSafe for ServiceTrait
impl !Send for ServiceTrait
impl !Sync for ServiceTrait
impl Unpin for ServiceTrait
impl UnsafeUnpin for ServiceTrait
impl UnwindSafe for ServiceTrait
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> DynamicTokens for T
impl<T> DynamicTokens for T
Source§impl<T> Parse for Twhere
T: Parser,
impl<T> Parse for Twhere
T: Parser,
Source§fn parse(tokens: &mut TokenIter) -> Result<Self, Error>
fn parse(tokens: &mut TokenIter) -> Result<Self, Error>
This is the user facing API to parse grammatical entities. Calls a
parser() within a
transaction. Commits changes on success and returns the parsed value. Read more