pub struct Identifier {
pub typ: String,
pub value: String,
}Expand description
An ACME identifier (RFC 8555 §7.1.4). Only dns is supported here, but the
type is kept generic so the JSON round-trips whatever a client sent.
Stored inside the order’s identifiers JSON array and echoed verbatim in the
order object. Reused by the signer to check a finalize CSR’s SANs.
Fields§
§typ: String§value: StringImplementations§
Source§impl Identifier
impl Identifier
Sourcepub fn dns(value: impl Into<String>) -> Self
pub fn dns(value: impl Into<String>) -> Self
A dns identifier, which is every identifier this server issues for.
Here rather than in a test helper because the struct had no constructor
at all, and twelve modules had each grown their own fn dns(&str) to
avoid writing the literal — the same accumulation that put TempDir in
testutil, except these are one line each and belong in production,
where the handlers building identifiers benefit too.
Trait Implementations§
Source§impl Clone for Identifier
impl Clone for Identifier
Source§impl Debug for Identifier
impl Debug for Identifier
Source§impl<'de> Deserialize<'de> for Identifier
impl<'de> Deserialize<'de> for Identifier
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
impl Eq for Identifier
Source§impl PartialEq for Identifier
impl PartialEq for Identifier
Source§impl Serialize for Identifier
impl Serialize for Identifier
impl StructuralPartialEq for Identifier
Auto Trait Implementations§
impl Freeze for Identifier
impl RefUnwindSafe for Identifier
impl Send for Identifier
impl Sync for Identifier
impl Unpin for Identifier
impl UnsafeUnpin for Identifier
impl UnwindSafe for Identifier
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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