pub struct MethodDef {Show 18 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 bidir_type: Option<TypeRef>,
pub bidir_response_type: Option<TypeRef>,
pub bidir_response_schema: Option<Value>,
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§bidir_type: Option<TypeRef>§bidir_response_type: Option<TypeRef>§bidir_response_schema: Option<Value>§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 Freeze 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