pub struct DestinatarioType {
pub cnpj: Option<String>,
pub cpf: Option<String>,
pub razao_social: String,
pub inscricao_estadual: Option<String>,
pub endereco: Option<EnderecoType>,
}Expand description
Destinatário
Fields§
§cnpj: Option<String>§cpf: Option<String>§inscricao_estadual: Option<String>§endereco: Option<EnderecoType>Implementations§
Source§impl DestinatarioType
impl DestinatarioType
pub async fn cnpj(&self, ctx: &Context<'_>) -> Result<&Option<String>>
pub async fn cpf(&self, ctx: &Context<'_>) -> Result<&Option<String>>
pub async fn inscricao_estadual( &self, ctx: &Context<'_>, ) -> Result<&Option<String>>
pub async fn endereco(&self, ctx: &Context<'_>) -> Result<&Option<EnderecoType>>
Trait Implementations§
Source§impl Clone for DestinatarioType
impl Clone for DestinatarioType
Source§fn clone(&self) -> DestinatarioType
fn clone(&self) -> DestinatarioType
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 DestinatarioType
impl ContainerType for DestinatarioType
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 DestinatarioType
impl Debug for DestinatarioType
Source§impl<'de> Deserialize<'de> for DestinatarioType
impl<'de> Deserialize<'de> for DestinatarioType
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 OutputType for DestinatarioType
impl OutputType for DestinatarioType
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 Serialize for DestinatarioType
impl Serialize for DestinatarioType
impl ObjectType for DestinatarioType
Auto Trait Implementations§
impl Freeze for DestinatarioType
impl RefUnwindSafe for DestinatarioType
impl Send for DestinatarioType
impl Sync for DestinatarioType
impl Unpin for DestinatarioType
impl UnsafeUnpin for DestinatarioType
impl UnwindSafe for DestinatarioType
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<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 more