pub enum GqlAssetStatus {
Active,
Deprecated,
Archived,
NonCompliant,
}Expand description
GraphQL representation of asset status
Variants§
Active
Asset is active and available
Deprecated
Asset is deprecated
Archived
Asset is archived
NonCompliant
Asset is non-compliant
Implementations§
Source§impl GqlAssetStatus
impl GqlAssetStatus
pub fn from_core(status: &AssetStatus) -> Self
pub fn to_core(&self) -> AssetStatus
Trait Implementations§
Source§impl Clone for GqlAssetStatus
impl Clone for GqlAssetStatus
Source§fn clone(&self) -> GqlAssetStatus
fn clone(&self) -> GqlAssetStatus
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 EnumType for GqlAssetStatus
impl EnumType for GqlAssetStatus
Source§fn items() -> &'static [EnumItem<GqlAssetStatus>]
fn items() -> &'static [EnumItem<GqlAssetStatus>]
Get a list of possible variants of the enum and their values.
Source§impl From<GqlAssetStatus> for Value
impl From<GqlAssetStatus> for Value
Source§fn from(value: GqlAssetStatus) -> Value
fn from(value: GqlAssetStatus) -> Value
Converts to this type from the input type.
Source§impl InputType for GqlAssetStatus
impl InputType for GqlAssetStatus
Source§type RawValueType = GqlAssetStatus
type RawValueType = GqlAssetStatus
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 GqlAssetStatus
impl OutputType for GqlAssetStatus
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 PartialEq for GqlAssetStatus
impl PartialEq for GqlAssetStatus
impl Copy for GqlAssetStatus
impl Eq for GqlAssetStatus
impl StructuralPartialEq for GqlAssetStatus
Auto Trait Implementations§
impl Freeze for GqlAssetStatus
impl RefUnwindSafe for GqlAssetStatus
impl Send for GqlAssetStatus
impl Sync for GqlAssetStatus
impl Unpin for GqlAssetStatus
impl UnwindSafe for GqlAssetStatus
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> 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<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request