pub struct SystemOperationMetadata {Show 13 fields
pub system_operation_type: String,
pub transfer: Option<TransferOperationMetadata>,
pub claim: Option<ClaimOperationMetadata>,
pub open_chain: Option<OpenChainOperationMetadata>,
pub change_ownership: Option<ChangeOwnershipOperationMetadata>,
pub change_application_permissions: Option<ChangeApplicationPermissionsMetadata>,
pub admin: Option<AdminOperationMetadata>,
pub create_application: Option<CreateApplicationOperationMetadata>,
pub publish_data_blob: Option<PublishDataBlobMetadata>,
pub verify_blob: Option<VerifyBlobMetadata>,
pub publish_module: Option<PublishModuleMetadata>,
pub epoch: Option<i32>,
pub update_streams: Option<Vec<UpdateStreamMetadata>>,
}Expand description
Structured representation of a system operation for GraphQL.
Fields§
§system_operation_type: StringThe type of system operation
transfer: Option<TransferOperationMetadata>Transfer operation details
claim: Option<ClaimOperationMetadata>Claim operation details
open_chain: Option<OpenChainOperationMetadata>Open chain operation details
change_ownership: Option<ChangeOwnershipOperationMetadata>Change ownership operation details
change_application_permissions: Option<ChangeApplicationPermissionsMetadata>Change application permissions operation details
admin: Option<AdminOperationMetadata>Admin operation details
create_application: Option<CreateApplicationOperationMetadata>Create application operation details
publish_data_blob: Option<PublishDataBlobMetadata>Publish data blob operation details
verify_blob: Option<VerifyBlobMetadata>Verify blob operation details
publish_module: Option<PublishModuleMetadata>Publish module operation details
epoch: Option<i32>Epoch operation details (ProcessNewEpoch, ProcessRemovedEpoch)
update_streams: Option<Vec<UpdateStreamMetadata>>UpdateStreams operation details
Implementations§
Source§impl SystemOperationMetadata
impl SystemOperationMetadata
pub async fn system_operation_type(&self, ctx: &Context<'_>) -> Result<&String>
pub async fn transfer( &self, ctx: &Context<'_>, ) -> Result<&Option<TransferOperationMetadata>>
pub async fn claim( &self, ctx: &Context<'_>, ) -> Result<&Option<ClaimOperationMetadata>>
pub async fn open_chain( &self, ctx: &Context<'_>, ) -> Result<&Option<OpenChainOperationMetadata>>
pub async fn change_ownership( &self, ctx: &Context<'_>, ) -> Result<&Option<ChangeOwnershipOperationMetadata>>
pub async fn change_application_permissions( &self, ctx: &Context<'_>, ) -> Result<&Option<ChangeApplicationPermissionsMetadata>>
pub async fn admin( &self, ctx: &Context<'_>, ) -> Result<&Option<AdminOperationMetadata>>
pub async fn create_application( &self, ctx: &Context<'_>, ) -> Result<&Option<CreateApplicationOperationMetadata>>
pub async fn publish_data_blob( &self, ctx: &Context<'_>, ) -> Result<&Option<PublishDataBlobMetadata>>
pub async fn verify_blob( &self, ctx: &Context<'_>, ) -> Result<&Option<VerifyBlobMetadata>>
pub async fn publish_module( &self, ctx: &Context<'_>, ) -> Result<&Option<PublishModuleMetadata>>
pub async fn epoch(&self, ctx: &Context<'_>) -> Result<&Option<i32>>
pub async fn update_streams( &self, ctx: &Context<'_>, ) -> Result<&Option<Vec<UpdateStreamMetadata>>>
Trait Implementations§
Source§impl Clone for SystemOperationMetadata
impl Clone for SystemOperationMetadata
Source§fn clone(&self) -> SystemOperationMetadata
fn clone(&self) -> SystemOperationMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ContainerType for SystemOperationMetadata
impl ContainerType for SystemOperationMetadata
Source§async fn resolve_field(&self, ctx: &Context<'_>) -> ServerResult<Option<Value>>
async fn resolve_field(&self, ctx: &Context<'_>) -> ServerResult<Option<Value>>
Resolves a field value and outputs it as a json value
async_graphql::Value. Read moreSource§fn collect_all_fields<'a>(
&'a self,
ctx: &ContextBase<'a, &'a Positioned<SelectionSet>>,
fields: &mut Fields<'a>,
) -> Result<(), ServerError>
fn collect_all_fields<'a>( &'a self, ctx: &ContextBase<'a, &'a Positioned<SelectionSet>>, fields: &mut Fields<'a>, ) -> Result<(), ServerError>
Collect all the fields of the container that are queried in the
selection set. Read more
Source§fn find_entity(
&self,
_: &ContextBase<'_, &Positioned<Field>>,
_params: &ConstValue,
) -> impl Future<Output = Result<Option<ConstValue>, ServerError>> + Send
fn find_entity( &self, _: &ContextBase<'_, &Positioned<Field>>, _params: &ConstValue, ) -> impl Future<Output = Result<Option<ConstValue>, ServerError>> + Send
Find the GraphQL entity with the given name from the parameter. Read more
Source§impl Debug for SystemOperationMetadata
impl Debug for SystemOperationMetadata
Source§impl<'de> Deserialize<'de> for SystemOperationMetadata
impl<'de> Deserialize<'de> for SystemOperationMetadata
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
Source§impl From<&SystemOperation> for SystemOperationMetadata
impl From<&SystemOperation> for SystemOperationMetadata
Source§fn from(sys_op: &SystemOperation) -> Self
fn from(sys_op: &SystemOperation) -> Self
Converts to this type from the input type.
Source§impl Hash for SystemOperationMetadata
impl Hash for SystemOperationMetadata
Source§impl OutputType for SystemOperationMetadata
impl OutputType for SystemOperationMetadata
Source§fn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
Source§async fn resolve(
&self,
ctx: &ContextSelectionSet<'_>,
_field: &Positioned<Field>,
) -> ServerResult<Value>
async fn resolve( &self, ctx: &ContextSelectionSet<'_>, _field: &Positioned<Field>, ) -> ServerResult<Value>
Resolve an output value to
async_graphql::Value.Source§fn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
Source§impl PartialEq for SystemOperationMetadata
impl PartialEq for SystemOperationMetadata
Source§impl Serialize for SystemOperationMetadata
impl Serialize for SystemOperationMetadata
impl Eq for SystemOperationMetadata
impl ObjectType for SystemOperationMetadata
impl StructuralPartialEq for SystemOperationMetadata
Auto Trait Implementations§
impl Freeze for SystemOperationMetadata
impl RefUnwindSafe for SystemOperationMetadata
impl Send for SystemOperationMetadata
impl Sync for SystemOperationMetadata
impl Unpin for SystemOperationMetadata
impl UnsafeUnpin for SystemOperationMetadata
impl UnwindSafe for SystemOperationMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<M, I> RuntimeMemory<&mut I> for Mwhere
M: RuntimeMemory<I>,
impl<M, I> RuntimeMemory<&mut I> for Mwhere
M: RuntimeMemory<I>,
Source§fn read<'instance>(
&self,
instance: &'instance &mut I,
location: GuestPointer,
length: u32,
) -> Result<Cow<'instance, [u8]>, RuntimeError>
fn read<'instance>( &self, instance: &'instance &mut I, location: GuestPointer, length: u32, ) -> Result<Cow<'instance, [u8]>, RuntimeError>
Reads length bytes from memory from the provided location.
Source§fn write(
&mut self,
instance: &mut &mut I,
location: GuestPointer,
bytes: &[u8],
) -> Result<(), RuntimeError>
fn write( &mut self, instance: &mut &mut I, location: GuestPointer, bytes: &[u8], ) -> Result<(), RuntimeError>
Writes the bytes to memory at the provided location.