pub struct ServiceDef { /* private fields */ }Implementations§
Source§impl ServiceDef
impl ServiceDef
pub fn span(&self) -> Span
pub fn name(&self) -> &Ident
pub fn uuid(&self) -> &LitUuid
pub fn version(&self) -> &LitPosInt
pub fn items(&self) -> &[ServiceItem]
pub fn function_fallback(&self) -> Option<&FunctionFallbackDef>
pub fn event_fallback(&self) -> Option<&EventFallbackDef>
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 · Source§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§
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