pub struct ServiceDetail {
pub name: Cow<'static, str>,
pub methods: Vec<MethodDetail>,
pub doc: Option<Cow<'static, str>>,
}Expand description
A complete service definition with all its methods.
Fields§
§name: Cow<'static, str>Service name (e.g., “Calculator”).
methods: Vec<MethodDetail>Methods defined on this service.
doc: Option<Cow<'static, str>>Documentation string, if any.
Trait Implementations§
Source§impl Clone for ServiceDetail
impl Clone for ServiceDetail
Source§fn clone(&self) -> ServiceDetail
fn clone(&self) -> ServiceDetail
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 Debug for ServiceDetail
impl Debug for ServiceDetail
Auto Trait Implementations§
impl Freeze for ServiceDetail
impl RefUnwindSafe for ServiceDetail
impl Send for ServiceDetail
impl Sync for ServiceDetail
impl Unpin for ServiceDetail
impl UnwindSafe for ServiceDetail
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