pub struct ContextMethod {
pub return_type: String,
pub name: String,
pub params: Vec<ContextMethodParam>,
}Fields§
§return_type: String§name: String§params: Vec<ContextMethodParam>Implementations§
Source§impl ContextMethod
impl ContextMethod
pub fn new( return_type: String, name: String, params: Vec<ContextMethodParam>, ) -> ContextMethod
Trait Implementations§
Source§impl Clone for ContextMethod
impl Clone for ContextMethod
Source§fn clone(&self) -> ContextMethod
fn clone(&self) -> ContextMethod
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ContextMethod
impl Debug for ContextMethod
Source§impl Default for ContextMethod
impl Default for ContextMethod
Source§fn default() -> ContextMethod
fn default() -> ContextMethod
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContextMethod
impl<'de> Deserialize<'de> for ContextMethod
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ContextMethod
impl PartialEq for ContextMethod
Source§fn eq(&self, other: &ContextMethod) -> bool
fn eq(&self, other: &ContextMethod) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ContextMethod
impl Serialize for ContextMethod
impl StructuralPartialEq for ContextMethod
Auto Trait Implementations§
impl Freeze for ContextMethod
impl RefUnwindSafe for ContextMethod
impl Send for ContextMethod
impl Sync for ContextMethod
impl Unpin for ContextMethod
impl UnsafeUnpin for ContextMethod
impl UnwindSafe for ContextMethod
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