google_maps/address_validation/provide_validation_feedback/request/
validation_conclusion.rs

1use serde::{Deserialize, Serialize};
2use strum_macros::{EnumString, EnumIter, AsRefStr, Display};
3
4// -----------------------------------------------------------------------------
5//
6/// The possible final outcomes of the sequence of address validation requests
7/// needed to validate an address.
8#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd, Serialize, Deserialize, EnumString, EnumIter, AsRefStr, Display)]
9#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
10#[repr(u8)]
11pub enum ValidationConclusion {
12    /// This value is unused. If the
13    /// `ProvideValidationFeedbackRequest.conclusion` field is set to
14    /// `VALIDATION_CONCLUSION_UNSPECIFIED`, an `INVALID_ARGUMENT` error will be
15    /// returned.
16    ValidationConclusionUnspecified = 0,
17    /// The version of the address returned by the Address Validation API was
18    /// used for the transaction.
19    ValidatedVersionUsed = 1,
20    /// The version of the address provided by the user was used for the
21    /// transaction
22    UserVersionUsed = 2,
23    /// A version of the address that was entered after the last validation
24    /// attempt but that was not re-validated was used for the transaction.
25    UnvalidatedVersionUsed = 3,
26    /// The transaction was abandoned and the address was not used.
27    #[default] Unused = 4,
28} // enum ValidationConclusion