pub struct GrainSpec {
pub grain_type: String,
pub namespace: String,
pub fields: Map<String, Value>,
}Expand description
A grain to be written by an apply. derived_from and other provenance go
in fields; the substrate computes the content address.
Fields§
§grain_type: String§namespace: String§fields: Map<String, Value>Implementations§
Trait Implementations§
impl StructuralPartialEq for GrainSpec
Auto Trait Implementations§
impl Freeze for GrainSpec
impl RefUnwindSafe for GrainSpec
impl Send for GrainSpec
impl Sync for GrainSpec
impl Unpin for GrainSpec
impl UnsafeUnpin for GrainSpec
impl UnwindSafe for GrainSpec
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