pub struct ServiceDef { /* private fields */ }Implementations§
Source§impl ServiceDef
impl ServiceDef
pub fn span(&self) -> Span
pub fn comment(&self) -> &[Comment]
pub fn doc(&self) -> &[DocString]
pub fn name(&self) -> &Ident
pub fn uuid_comment(&self) -> &[Comment]
pub fn uuid(&self) -> &LitUuid
pub fn version_comment(&self) -> &[Comment]
pub fn version(&self) -> &LitInt
pub fn items(&self) -> &[ServiceItem]
pub fn function_fallback(&self) -> Option<&FunctionFallback>
pub fn event_fallback(&self) -> Option<&EventFallback>
Trait Implementations§
Source§impl Clone for ServiceDef
impl Clone for ServiceDef
Source§fn clone(&self) -> ServiceDef
fn clone(&self) -> ServiceDef
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ServiceDef
impl RefUnwindSafe for ServiceDef
impl Send for ServiceDef
impl Sync for ServiceDef
impl Unpin for ServiceDef
impl UnwindSafe for ServiceDef
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)