pub struct InfProt {
pub tp_amb: i32,
pub ver_aplic: String,
pub ch_nfe: String,
pub dh_recbto: String,
pub n_prot: Option<String>,
pub dig_val: Option<String>,
pub c_stat: i32,
pub x_motivo: String,
}Expand description
Dados do protocolo de autorização (<infProt>).
Fields§
§tp_amb: i32Ambiente: 1 = Produção · 2 = Homologação.
ver_aplic: StringVersão do aplicativo da SEFAZ.
ch_nfe: StringChave de acesso da NF-e (44 dígitos).
dh_recbto: StringData e hora do recebimento pela SEFAZ (ISO 8601).
n_prot: Option<String>Número do protocolo de autorização. Presente somente quando c_stat == 100.
dig_val: Option<String>Digest SHA-1 do XML assinado (base64).
c_stat: i32Código de status da SEFAZ. 100 = autorizado.
x_motivo: StringDescrição do status retornado pela SEFAZ.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for InfProt
impl<'de> Deserialize<'de> for InfProt
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
Auto Trait Implementations§
impl Freeze for InfProt
impl RefUnwindSafe for InfProt
impl Send for InfProt
impl Sync for InfProt
impl Unpin for InfProt
impl UnsafeUnpin for InfProt
impl UnwindSafe for InfProt
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