pub struct MethodDetail {
pub service_name: Cow<'static, str>,
pub method_name: Cow<'static, str>,
pub args: Vec<ArgDetail>,
pub return_type: &'static Shape,
pub doc: Option<Cow<'static, str>>,
}Expand description
A single method in a service definition.
Fields§
§service_name: Cow<'static, str>The service this method belongs to.
method_name: Cow<'static, str>Method name (e.g., “add”).
args: Vec<ArgDetail>Method arguments (excluding &self).
return_type: &'static ShapeReturn type shape.
Use facet_core to inspect the shape:
shape.defreveals if it’s a struct, enum, primitive, etc.shape.type_paramsgives generic parameters- Check for
#[facet(roam = "tx")]attribute for streaming types
doc: Option<Cow<'static, str>>Documentation string, if any.
Trait Implementations§
Source§impl Clone for MethodDetail
impl Clone for MethodDetail
Source§fn clone(&self) -> MethodDetail
fn clone(&self) -> MethodDetail
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 MethodDetail
impl Debug for MethodDetail
Auto Trait Implementations§
impl Freeze for MethodDetail
impl RefUnwindSafe for MethodDetail
impl Send for MethodDetail
impl Sync for MethodDetail
impl Unpin for MethodDetail
impl UnwindSafe for MethodDetail
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