Struct linera_version::Pretty
source · pub struct Pretty<T, Repr> {
pub value: T,
/* private fields */
}
Fields§
§value: T
Implementations§
Trait Implementations§
source§impl<'de, T, Repr> Deserialize<'de> for Pretty<T, Repr>
impl<'de, T, Repr> Deserialize<'de> for Pretty<T, Repr>
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§impl InputType for Pretty<CrateVersion, Version>
impl InputType for Pretty<CrateVersion, Version>
§type RawValueType = Pretty<CrateVersion, Version>
type RawValueType = Pretty<CrateVersion, Version>
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.
source§impl OutputType for Pretty<CrateVersion, Version>
impl OutputType for Pretty<CrateVersion, Version>
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,
_: &ContextSelectionSet<'_>,
_field: &Positioned<Field>,
) -> ServerResult<Value>
async fn resolve( &self, _: &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<T: PartialEq, Repr: PartialEq> PartialEq for Pretty<T, Repr>
impl<T: PartialEq, Repr: PartialEq> PartialEq for Pretty<T, Repr>
source§impl ScalarType for Pretty<CrateVersion, Version>
impl ScalarType for Pretty<CrateVersion, Version>
impl<T: Eq, Repr: Eq> Eq for Pretty<T, Repr>
impl<T, Repr> StructuralPartialEq for Pretty<T, Repr>
Auto Trait Implementations§
impl<T, Repr> Freeze for Pretty<T, Repr>where
T: Freeze,
impl<T, Repr> RefUnwindSafe for Pretty<T, Repr>where
T: RefUnwindSafe,
impl<T, Repr> Send for Pretty<T, Repr>where
T: Send,
impl<T, Repr> Sync for Pretty<T, Repr>where
T: Sync,
impl<T, Repr> Unpin for Pretty<T, Repr>where
T: Unpin,
impl<T, Repr> UnwindSafe for Pretty<T, Repr>where
T: UnwindSafe,
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.