pub struct TotaisType {
pub base_calculo_icms: f64,
pub valor_icms: f64,
pub valor_produtos: f64,
pub valor_frete: f64,
pub valor_desconto: f64,
pub valor_total: f64,
}Expand description
Totais da NF-e
Fields§
§base_calculo_icms: f64§valor_icms: f64§valor_produtos: f64§valor_frete: f64§valor_desconto: f64§valor_total: f64Implementations§
Source§impl TotaisType
impl TotaisType
pub async fn base_calculo_icms(&self, ctx: &Context<'_>) -> Result<&f64>
pub async fn valor_icms(&self, ctx: &Context<'_>) -> Result<&f64>
pub async fn valor_produtos(&self, ctx: &Context<'_>) -> Result<&f64>
pub async fn valor_frete(&self, ctx: &Context<'_>) -> Result<&f64>
pub async fn valor_desconto(&self, ctx: &Context<'_>) -> Result<&f64>
pub async fn valor_total(&self, ctx: &Context<'_>) -> Result<&f64>
Trait Implementations§
Source§impl Clone for TotaisType
impl Clone for TotaisType
Source§fn clone(&self) -> TotaisType
fn clone(&self) -> TotaisType
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 TotaisType
impl ContainerType for TotaisType
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 TotaisType
impl Debug for TotaisType
Source§impl<'de> Deserialize<'de> for TotaisType
impl<'de> Deserialize<'de> for TotaisType
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 TotaisType
impl OutputType for TotaisType
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 TotaisType
impl Serialize for TotaisType
impl ObjectType for TotaisType
Auto Trait Implementations§
impl Freeze for TotaisType
impl RefUnwindSafe for TotaisType
impl Send for TotaisType
impl Sync for TotaisType
impl Unpin for TotaisType
impl UnsafeUnpin for TotaisType
impl UnwindSafe for TotaisType
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