pub struct AddressClaim {
pub formatted: Option<String>,
pub street_address: Option<String>,
pub locality: Option<String>,
pub region: Option<String>,
pub postal_code: Option<String>,
pub country: Option<String>,
}Expand description
OIDC Core 1.0 §5.1.1 — address is a structured claim, not a flat
string. All fields optional; an issuer may emit any subset.
Serializable in both directions: Deserialize is used by
id_token::verify’s deserialize_claims; Serialize is used by
engine::encode_id_token::IssuePayload (Phase 10.10) when the
issuer-side IssueRequest::with_address populates it. Matching
derive sets keep the round-trip identity-preserving.
Per OIDC Core §5.1.1, an issuer may emit any subset of fields; the
serde deserializer fills missing keys as None. Symmetric
serde(skip_serializing_if = "Option::is_none") on the
fields keeps the wire shape minimal — an issuer emitting only
country produces {"country": "KR"} rather than a fully-fielded
object with nulls.
Fields§
§formatted: Option<String>§street_address: Option<String>§locality: Option<String>§region: Option<String>§postal_code: Option<String>§country: Option<String>Trait Implementations§
Source§impl Clone for AddressClaim
impl Clone for AddressClaim
Source§fn clone(&self) -> AddressClaim
fn clone(&self) -> AddressClaim
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AddressClaim
impl Debug for AddressClaim
Source§impl Default for AddressClaim
impl Default for AddressClaim
Source§fn default() -> AddressClaim
fn default() -> AddressClaim
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AddressClaim
impl<'de> Deserialize<'de> for AddressClaim
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 PartialEq for AddressClaim
impl PartialEq for AddressClaim
Source§fn eq(&self, other: &AddressClaim) -> bool
fn eq(&self, other: &AddressClaim) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AddressClaim
impl Serialize for AddressClaim
impl Eq for AddressClaim
impl StructuralPartialEq for AddressClaim
Auto Trait Implementations§
impl Freeze for AddressClaim
impl RefUnwindSafe for AddressClaim
impl Send for AddressClaim
impl Sync for AddressClaim
impl Unpin for AddressClaim
impl UnsafeUnpin for AddressClaim
impl UnwindSafe for AddressClaim
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