pub struct MethodSpec {
pub name: &'static str,
pub params_schema: fn() -> Value,
pub result_schema: fn() -> Value,
pub validate: fn(&Value) -> Result<(), ServerError>,
}Fields§
§name: &'static str§params_schema: fn() -> Value§result_schema: fn() -> Value§validate: fn(&Value) -> Result<(), ServerError>Trait Implementations§
Source§impl Clone for MethodSpec
impl Clone for MethodSpec
impl Copy for MethodSpec
Auto Trait Implementations§
impl Freeze for MethodSpec
impl RefUnwindSafe for MethodSpec
impl Send for MethodSpec
impl Sync for MethodSpec
impl Unpin for MethodSpec
impl UnsafeUnpin for MethodSpec
impl UnwindSafe for MethodSpec
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