pub struct GrainContract {
pub interface_name: String,
pub grain_type: String,
pub methods: Vec<GrainMethod>,
pub supported_key_kinds: Vec<String>,
}Expand description
A single grain contract.
Fields§
§interface_name: StringFully-qualified grain interface name.
grain_type: StringGrain type alias used for dispatch.
methods: Vec<GrainMethod>Methods exposed by the grain.
supported_key_kinds: Vec<String>Key kinds the grain supports (string, int64, guid).
Trait Implementations§
Source§impl Clone for GrainContract
impl Clone for GrainContract
Source§fn clone(&self) -> GrainContract
fn clone(&self) -> GrainContract
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 GrainContract
impl Debug for GrainContract
Source§impl<'de> Deserialize<'de> for GrainContract
impl<'de> Deserialize<'de> for GrainContract
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 GrainContract
impl RefUnwindSafe for GrainContract
impl Send for GrainContract
impl Sync for GrainContract
impl Unpin for GrainContract
impl UnsafeUnpin for GrainContract
impl UnwindSafe for GrainContract
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