pub struct GrainMethod {
pub name: String,
pub request_type: String,
pub parameters: Vec<MethodParameter>,
pub response_type: String,
pub payload_codec: String,
}Expand description
A single grain method.
Fields§
§name: StringMethod name as exposed on the grain interface.
request_type: StringRequest (single-argument) .NET type name, or empty for no argument.
Ignored when parameters is present.
parameters: Vec<MethodParameter>Full parameter list. When present, takes precedence over request_type
and enables multi-argument methods.
response_type: StringResponse .NET type name, or empty for no return value.
payload_codec: StringPayload codec; only json is supported by the generator.
Trait Implementations§
Source§impl Clone for GrainMethod
impl Clone for GrainMethod
Source§fn clone(&self) -> GrainMethod
fn clone(&self) -> GrainMethod
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 GrainMethod
impl Debug for GrainMethod
Source§impl<'de> Deserialize<'de> for GrainMethod
impl<'de> Deserialize<'de> for GrainMethod
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
Auto Trait Implementations§
impl Freeze for GrainMethod
impl RefUnwindSafe for GrainMethod
impl Send for GrainMethod
impl Sync for GrainMethod
impl Unpin for GrainMethod
impl UnsafeUnpin for GrainMethod
impl UnwindSafe for GrainMethod
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