pub struct MutationInput {
pub kind: MutationKind,
pub type_name: String,
pub id: Option<String>,
pub data: Option<Value>,
}Expand description
变更输入
描述一个变更操作的参数
Fields§
§kind: MutationKind操作类型
type_name: String目标类型名
id: Option<String>主键值(更新/删除时需要)
data: Option<Value>输入数据(创建/更新时需要)
Implementations§
Trait Implementations§
Source§impl Clone for MutationInput
impl Clone for MutationInput
Source§fn clone(&self) -> MutationInput
fn clone(&self) -> MutationInput
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 MutationInput
impl Debug for MutationInput
Source§impl<'de> Deserialize<'de> for MutationInput
impl<'de> Deserialize<'de> for MutationInput
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 MutationInput
impl RefUnwindSafe for MutationInput
impl Send for MutationInput
impl Sync for MutationInput
impl Unpin for MutationInput
impl UnsafeUnpin for MutationInput
impl UnwindSafe for MutationInput
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