pub struct MethodDef {Show 15 fields
pub name: String,
pub full_path: String,
pub namespace: String,
pub description: Option<String>,
pub params: Vec<ParamDef>,
pub returns: TypeRef,
pub error: Option<TypeRef>,
pub progress: Option<TypeRef>,
pub cardinality: Cardinality,
pub role: MethodRole,
pub grant: Option<String>,
pub target: Option<String>,
pub long_description: Option<String>,
pub injected: Vec<InjectedParam>,
pub input: Option<TypeRef>,
}Expand description
A method: its contract read from its schema, never inferred.
Fields§
§name: String§full_path: String§namespace: String§description: Option<String>§params: Vec<ParamDef>§returns: TypeRef§error: Option<TypeRef>§progress: Option<TypeRef>§cardinality: Cardinality§role: MethodRole§grant: Option<String>§target: Option<String>§long_description: Option<String>§injected: Vec<InjectedParam>§input: Option<TypeRef>Implementations§
Trait Implementations§
impl StructuralPartialEq for MethodDef
Auto Trait Implementations§
impl Forget for MethodDef
impl Freeze for MethodDef
impl Move for MethodDef
impl RefUnwindSafe for MethodDef
impl Send for MethodDef
impl Sync for MethodDef
impl Unpin for MethodDef
impl UnsafeUnpin for MethodDef
impl UnwindSafe for MethodDef
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