pub struct WriteSchema {
pub mutation: MutationId,
pub schema: SchemaInput,
}Fields§
§mutation: MutationId§schema: SchemaInputImplementations§
Source§impl WriteSchema
impl WriteSchema
pub fn definition() -> OperationDefinition
Trait Implementations§
Source§impl Clone for WriteSchema
impl Clone for WriteSchema
impl Contains<WriteSchema> for Storage
Source§impl Debug for WriteSchema
impl Debug for WriteSchema
Source§impl Described for WriteSchema
impl Described for WriteSchema
impl Eq for WriteSchema
Source§impl MemorySize for WriteSchema
impl MemorySize for WriteSchema
fn memory_size(&self) -> usize
Source§const INLINE_ONLY: bool = false
const INLINE_ONLY: bool = false
True only when every value occupies exactly
size_of::<Self>() bytes,
with no separately owned allocations or additional accounting charge.Source§impl OperationDeclaration for WriteSchema
impl OperationDeclaration for WriteSchema
const ID: &'static str = "storage.write_schema"
const OPERATIONS: &'static [WireDeclaration]
const POLICY: OperationPolicy = POLICY
const VISIBILITY: Visibility = crate::operations::Visibility::Host
const REPLAY: ReplaySafety = ReplaySafety::Idempotent
type Request = WriteSchema
type Response = StorageCursor
type Input = NoStream
type Output = NoStream
const DESCRIPTION: &'static str = ""
const GRPC: Option<Grpc> = None
fn definition() -> OperationDefinition
fn grant(_request: &Self::Request) -> Option<Grant>
fn key(_request: &Self::Request) -> Option<CacheKey>
Source§impl PartialEq for WriteSchema
impl PartialEq for WriteSchema
impl StructuralPartialEq for WriteSchema
Source§impl Value for WriteSchema
impl Value for WriteSchema
fn write(&self, bytes: &mut Vec<u8>)
fn size(&self) -> usize
fn memory(input: &mut PostcardReader<'_>) -> Result<usize, MessageError>
fn read(input: &mut PostcardReader<'_>) -> Result<Self, MessageError>
fn size_many(values: &[Self]) -> usize
fn write_many(values: &[Self], bytes: &mut Vec<u8>)
fn memory_many( input: &mut Reader<'_>, count: usize, ) -> Result<usize, MessageError>
fn read_many( input: &mut Reader<'_>, count: usize, ) -> Result<Vec<Self>, MessageError>
Auto Trait Implementations§
impl Freeze for WriteSchema
impl RefUnwindSafe for WriteSchema
impl Send for WriteSchema
impl Sync for WriteSchema
impl Unpin for WriteSchema
impl UnsafeUnpin for WriteSchema
impl UnwindSafe for WriteSchema
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