pub struct NfeType {Show 15 fields
pub id: String,
pub chave_acesso: String,
pub numero: i32,
pub serie: i32,
pub tipo: TipoDocumento,
pub ambiente: Ambiente,
pub status: StatusNfe,
pub data_emissao: String,
pub data_autorizacao: Option<String>,
pub protocolo: Option<String>,
pub emitente: EmitenteType,
pub destinatario: Option<DestinatarioType>,
pub itens: Vec<ItemType>,
pub totais: TotaisType,
pub xml: Option<String>,
}Expand description
NF-e completa (output)
Fields§
§id: String§chave_acesso: String§numero: i32§serie: i32§tipo: TipoDocumento§ambiente: Ambiente§status: StatusNfe§data_emissao: String§data_autorizacao: Option<String>§protocolo: Option<String>§emitente: EmitenteType§destinatario: Option<DestinatarioType>§itens: Vec<ItemType>§totais: TotaisType§xml: Option<String>Implementations§
Source§impl NfeType
impl NfeType
pub async fn id(&self, ctx: &Context<'_>) -> Result<&String>
pub async fn chave_acesso(&self, ctx: &Context<'_>) -> Result<&String>
pub async fn numero(&self, ctx: &Context<'_>) -> Result<&i32>
pub async fn serie(&self, ctx: &Context<'_>) -> Result<&i32>
pub async fn tipo(&self, ctx: &Context<'_>) -> Result<&TipoDocumento>
pub async fn ambiente(&self, ctx: &Context<'_>) -> Result<&Ambiente>
pub async fn status(&self, ctx: &Context<'_>) -> Result<&StatusNfe>
pub async fn data_emissao(&self, ctx: &Context<'_>) -> Result<&String>
pub async fn data_autorizacao( &self, ctx: &Context<'_>, ) -> Result<&Option<String>>
pub async fn protocolo(&self, ctx: &Context<'_>) -> Result<&Option<String>>
pub async fn emitente(&self, ctx: &Context<'_>) -> Result<&EmitenteType>
pub async fn destinatario( &self, ctx: &Context<'_>, ) -> Result<&Option<DestinatarioType>>
pub async fn itens(&self, ctx: &Context<'_>) -> Result<&Vec<ItemType>>
pub async fn totais(&self, ctx: &Context<'_>) -> Result<&TotaisType>
pub async fn xml(&self, ctx: &Context<'_>) -> Result<&Option<String>>
Trait Implementations§
Source§impl ContainerType for NfeType
impl ContainerType for NfeType
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<'de> Deserialize<'de> for NfeType
impl<'de> Deserialize<'de> for NfeType
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 NfeType
impl OutputType for NfeType
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.
impl ObjectType for NfeType
Auto Trait Implementations§
impl Freeze for NfeType
impl RefUnwindSafe for NfeType
impl Send for NfeType
impl Sync for NfeType
impl Unpin for NfeType
impl UnsafeUnpin for NfeType
impl UnwindSafe for NfeType
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