pub struct MethodSchema {
pub id: u16,
pub response: ResponseType,
}Expand description
Method definition with ID and response type.
Fields§
§id: u16Assigned method ID (1-65534).
response: ResponseTypeExpected response type.
Trait Implementations§
Source§impl Clone for MethodSchema
impl Clone for MethodSchema
Source§fn clone(&self) -> MethodSchema
fn clone(&self) -> MethodSchema
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 moreAuto Trait Implementations§
impl Freeze for MethodSchema
impl RefUnwindSafe for MethodSchema
impl Send for MethodSchema
impl Sync for MethodSchema
impl Unpin for MethodSchema
impl UnwindSafe for MethodSchema
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