pub struct ConsensusBytes {
pub consensusVariantIdx: u8,
pub consensusData: Vec<u8>,
}Fields§
§consensusVariantIdx: u8§consensusData: Vec<u8>Implementations§
Trait Implementations§
Source§impl Clone for ConsensusBytes
impl Clone for ConsensusBytes
Source§fn clone(&self) -> ConsensusBytes
fn clone(&self) -> ConsensusBytes
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 ContainerType for ConsensusBytes
impl ContainerType for ConsensusBytes
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 ConsensusBytes
impl Debug for ConsensusBytes
Source§impl Default for ConsensusBytes
impl Default for ConsensusBytes
Source§fn default() -> ConsensusBytes
fn default() -> ConsensusBytes
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConsensusBytes
impl<'de> Deserialize<'de> for ConsensusBytes
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
impl InputObjectType for ConsensusBytes
Source§impl InputType for ConsensusBytes
impl InputType for ConsensusBytes
Source§type RawValueType = ConsensusBytes
type RawValueType = ConsensusBytes
The raw type used for validator. Read more
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§fn parse(value: Option<Value>) -> InputValueResult<Self>
fn parse(value: Option<Value>) -> InputValueResult<Self>
Parse from
Value. None represents undefined.Source§fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn as_raw_value(&self) -> Option<&Self::RawValueType>
Returns a reference to the raw value.
Source§fn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
impl ObjectType for ConsensusBytes
Source§impl OutputType for ConsensusBytes
impl OutputType for ConsensusBytes
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 Pack for ConsensusBytes
impl Pack for ConsensusBytes
Source§impl Serialize for ConsensusBytes
impl Serialize for ConsensusBytes
Source§impl ToKey for ConsensusBytes
impl ToKey for ConsensusBytes
Source§impl ToSchema for ConsensusBytes
impl ToSchema for ConsensusBytes
fn schema(builder: &mut SchemaBuilder) -> AnyType
Source§impl<'a> Unpack<'a> for ConsensusBytes
impl<'a> Unpack<'a> for ConsensusBytes
Source§fn unpack(src: &mut FracInputStream<'a>) -> Result<Self>
fn unpack(src: &mut FracInputStream<'a>) -> Result<Self>
Convert from fracpack format. Also verifies the integrity of the data. Read more
Source§fn verify(src: &mut FracInputStream<'_>) -> Result<()>
fn verify(src: &mut FracInputStream<'_>) -> Result<()>
Verify the integrity of fracpack data. You don’t need to call this if
using [Pack::unpack] since it verifies integrity during unpack.
Auto Trait Implementations§
impl Freeze for ConsensusBytes
impl RefUnwindSafe for ConsensusBytes
impl Send for ConsensusBytes
impl Sync for ConsensusBytes
impl Unpin for ConsensusBytes
impl UnsafeUnpin for ConsensusBytes
impl UnwindSafe for ConsensusBytes
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