pub enum ServiceEntry<'a> {
Comment(Comment<'a>),
Option(Option<'a>),
Rpc(Rpc<'a>),
}Expand description
Entries that can appear inside a service block.
Variants§
Implementations§
Source§impl ServiceEntry<'_>
impl ServiceEntry<'_>
Sourcepub fn into_owned(self) -> ServiceEntry<'static>
pub fn into_owned(self) -> ServiceEntry<'static>
Copy the structure and clone the original values if it’s not owned.
This is always a deep copy of the structure.
Trait Implementations§
Source§impl<'a> Clone for ServiceEntry<'a>
impl<'a> Clone for ServiceEntry<'a>
Source§fn clone(&self) -> ServiceEntry<'a>
fn clone(&self) -> ServiceEntry<'a>
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 moreSource§impl<'a> Debug for ServiceEntry<'a>
impl<'a> Debug for ServiceEntry<'a>
Source§impl<'a> From<Comment<'a>> for ServiceEntry<'a>
impl<'a> From<Comment<'a>> for ServiceEntry<'a>
Source§impl<'a> From<Option<'a>> for ServiceEntry<'a>
impl<'a> From<Option<'a>> for ServiceEntry<'a>
Source§impl<'a> From<Rpc<'a>> for ServiceEntry<'a>
impl<'a> From<Rpc<'a>> for ServiceEntry<'a>
Source§impl IntoOwned for ServiceEntry<'_>
impl IntoOwned for ServiceEntry<'_>
Source§type Owned = ServiceEntry<'static>
type Owned = ServiceEntry<'static>
The type after obtaining ownership, should be the same as before but with static lifetime.
Source§fn into_owned(self) -> Self::Owned
fn into_owned(self) -> Self::Owned
Copy the structure and clone the original values if it’s not owned. Read more
Source§impl<'a> PartialEq for ServiceEntry<'a>
impl<'a> PartialEq for ServiceEntry<'a>
impl<'a> StructuralPartialEq for ServiceEntry<'a>
Auto Trait Implementations§
impl<'a> Freeze for ServiceEntry<'a>
impl<'a> RefUnwindSafe for ServiceEntry<'a>
impl<'a> Send for ServiceEntry<'a>
impl<'a> Sync for ServiceEntry<'a>
impl<'a> Unpin for ServiceEntry<'a>
impl<'a> UnwindSafe for ServiceEntry<'a>
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