pub struct PAssertedIdentity(/* private fields */);Expand description
One strict P-Asserted-Identity value (RFC 3325 §9.1).
PAssertedIdentityList is the complete construction and receive-list API.
Implementations§
Source§impl PAssertedIdentity
impl PAssertedIdentity
Sourcepub fn new(address: Address) -> Result<Self, HeaderError>
pub fn new(address: Address) -> Result<Self, HeaderError>
Construct one strict RFC 3325 value from a parsed address.
Only SIP, SIPS and TEL are accepted, and RFC 8217’s name-addr rule is enforced. Use the checked complete-list type when constructing a whole field.
Trait Implementations§
Source§impl Clone for PAssertedIdentity
impl Clone for PAssertedIdentity
Source§fn clone(&self) -> PAssertedIdentity
fn clone(&self) -> PAssertedIdentity
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 PAssertedIdentity
impl Debug for PAssertedIdentity
Source§impl Deref for PAssertedIdentity
impl Deref for PAssertedIdentity
Source§impl TypedHeader for PAssertedIdentity
impl TypedHeader for PAssertedIdentity
Source§const NAME: HeaderName = HeaderName::PAssertedIdentity
const NAME: HeaderName = HeaderName::PAssertedIdentity
The header this type reads.
Source§const VALIDATE_LIST: bool = true
const VALIDATE_LIST: bool = true
Whether
Headers::typed_all must collect and validate the complete field before yielding. Read moreSource§fn decode(value: &[u8]) -> Result<Self, HeaderError>
fn decode(value: &[u8]) -> Result<Self, HeaderError>
Parse one header value. The value arrives unfolded and trimmed.
Source§fn decode_list(value: &[u8]) -> Result<Vec<Self>, HeaderError>
fn decode_list(value: &[u8]) -> Result<Vec<Self>, HeaderError>
Parse every value in one header row. Read more
Source§fn validate_list(values: &[&Self]) -> Result<(), HeaderError>
fn validate_list(values: &[&Self]) -> Result<(), HeaderError>
Validate all decoded values of this field across the complete message. Read more
Auto Trait Implementations§
impl !Freeze for PAssertedIdentity
impl RefUnwindSafe for PAssertedIdentity
impl Send for PAssertedIdentity
impl Sync for PAssertedIdentity
impl Unpin for PAssertedIdentity
impl UnsafeUnpin for PAssertedIdentity
impl UnwindSafe for PAssertedIdentity
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