pub struct Language { /* private fields */ }Implementations§
Source§impl Language
impl Language
Sourcepub async fn graphql_name(&self, _: &Context<'_>) -> Result<&'static str>
pub async fn graphql_name(&self, _: &Context<'_>) -> Result<&'static str>
Returns the name of the language
Sourcepub async fn graphql_native_name(
&self,
_: &Context<'_>,
) -> Result<Option<&'static str>>
pub async fn graphql_native_name( &self, _: &Context<'_>, ) -> Result<Option<&'static str>>
Returns the native name of the language
Sourcepub async fn graphql_iso639_3(&self, _: &Context<'_>) -> Result<&'static str>
pub async fn graphql_iso639_3(&self, _: &Context<'_>) -> Result<&'static str>
Returns the ISO 639-3 language code.
Sourcepub async fn graphql_bcp47(&self, _: &Context<'_>) -> Result<&'static str>
pub async fn graphql_bcp47(&self, _: &Context<'_>) -> Result<&'static str>
Returns the BCP 47 tag.
Sourcepub async fn graphql_iso15924(&self, _: &Context<'_>) -> Result<&'static str>
pub async fn graphql_iso15924(&self, _: &Context<'_>) -> Result<&'static str>
Returns the ISO 15924 script code.
Sourcepub async fn graphql_iana(
&self,
_: &Context<'_>,
) -> Result<&'static [&'static str]>
pub async fn graphql_iana( &self, _: &Context<'_>, ) -> Result<&'static [&'static str]>
Returns array of assigned IANA tags.
Sourcepub async fn graphql_is_extinct(&self, _: &Context<'_>) -> Result<bool>
pub async fn graphql_is_extinct(&self, _: &Context<'_>) -> Result<bool>
Returns whether the language is extinct
Sourcepub async fn graphql_is_spurious(&self, _: &Context<'_>) -> Result<bool>
pub async fn graphql_is_spurious(&self, _: &Context<'_>) -> Result<bool>
Returns whether the language is spurious
Source§impl Language
impl Language
Sourcepub const fn native_name(&self) -> Option<&'static str>
pub const fn native_name(&self) -> Option<&'static str>
Returns the native name of the language
Sourcepub const fn is_extinct(&self) -> bool
pub const fn is_extinct(&self) -> bool
Returns whether the language is extinct
Sourcepub const fn is_spurious(&self) -> bool
pub const fn is_spurious(&self) -> bool
Returns whether the language is spurious
Trait Implementations§
Source§impl ContainerType for Language
impl ContainerType for Language
Source§fn resolve_field<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context<'life2>,
) -> Pin<Box<dyn Future<Output = ServerResult<Option<Value>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn resolve_field<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context<'life2>,
) -> Pin<Box<dyn Future<Output = ServerResult<Option<Value>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Resolves a field value and outputs it as a json value
async_graphql::Value. Read moreSource§fn find_entity<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
ctx: &'life1 Context<'life2>,
params: &'life3 Value,
) -> Pin<Box<dyn Future<Output = ServerResult<Option<Value>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn find_entity<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
ctx: &'life1 Context<'life2>,
params: &'life3 Value,
) -> Pin<Box<dyn Future<Output = ServerResult<Option<Value>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Find the GraphQL entity with the given name from the parameter. Read more
Source§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§impl Ord for Language
impl Ord for Language
Source§impl OutputType for Language
impl OutputType for Language
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 resolve<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
ctx: &'life1 ContextSelectionSet<'life2>,
_field: &'life3 Positioned<Field>,
) -> Pin<Box<dyn Future<Output = ServerResult<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn resolve<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
ctx: &'life1 ContextSelectionSet<'life2>,
_field: &'life3 Positioned<Field>,
) -> Pin<Box<dyn Future<Output = ServerResult<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Resolve an output value to
async_graphql::Value.Source§fn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
Source§impl PartialOrd for Language
impl PartialOrd for Language
impl Copy for Language
impl Eq for Language
impl ObjectType for Language
impl StructuralPartialEq for Language
Auto Trait Implementations§
impl Freeze for Language
impl RefUnwindSafe for Language
impl Send for Language
impl Sync for Language
impl Unpin for Language
impl UnwindSafe for Language
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.