pub struct ObjectName(/* private fields */);Expand description
Represents the (deterministic) file names of an RPKI repository object.
Values of this type can be cloned relatively cheaply. They contain the allocated name behind an arc.
Implementations§
Source§impl ObjectName
impl ObjectName
Sourcepub fn from_key(ki: &KeyIdentifier, extension: &str) -> Self
pub fn from_key(ki: &KeyIdentifier, extension: &str) -> Self
Creates a new object name from a key identifer and a file extension.
Sourcepub fn cer_from_key(ki: &KeyIdentifier) -> Self
pub fn cer_from_key(ki: &KeyIdentifier) -> Self
Creates the name for a CA certificate from its key.
Sourcepub fn mft_from_ca_key(ki: &KeyIdentifier) -> Self
pub fn mft_from_ca_key(ki: &KeyIdentifier) -> Self
Creates the name of a manifest from the key of its CA.
Sourcepub fn crl_from_ca_key(ki: &KeyIdentifier) -> Self
pub fn crl_from_ca_key(ki: &KeyIdentifier) -> Self
Creates the name of a CRL from the key of its CA.
Sourcepub fn aspa_from_customer(customer: Asn) -> Self
pub fn aspa_from_customer(customer: Asn) -> Self
Creates the name of an ASPA object from the customer ASN.
Sourcepub fn bgpsec(asn: Asn, key: KeyIdentifier) -> Self
pub fn bgpsec(asn: Asn, key: KeyIdentifier) -> Self
Creates the name of a router key from ASN and key identifer.
Trait Implementations§
Source§impl AsRef<[u8]> for ObjectName
impl AsRef<[u8]> for ObjectName
Source§impl AsRef<str> for ObjectName
impl AsRef<str> for ObjectName
Source§impl Clone for ObjectName
impl Clone for ObjectName
Source§fn clone(&self) -> ObjectName
fn clone(&self) -> ObjectName
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 ObjectName
impl Debug for ObjectName
Source§impl<'de> Deserialize<'de> for ObjectName
impl<'de> Deserialize<'de> for ObjectName
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 Display for ObjectName
impl Display for ObjectName
impl Eq for ObjectName
Source§impl From<&AspaDefinition> for ObjectName
impl From<&AspaDefinition> for ObjectName
Source§fn from(aspa: &AspaDefinition) -> Self
fn from(aspa: &AspaDefinition) -> Self
Converts to this type from the input type.
Source§impl From<&BgpSecAsnKey> for ObjectName
impl From<&BgpSecAsnKey> for ObjectName
Source§fn from(asn_key: &BgpSecAsnKey) -> Self
fn from(asn_key: &BgpSecAsnKey) -> Self
Converts to this type from the input type.
Source§impl From<&Cert> for ObjectName
impl From<&Cert> for ObjectName
Source§impl From<&Crl> for ObjectName
impl From<&Crl> for ObjectName
Source§impl From<&Manifest> for ObjectName
impl From<&Manifest> for ObjectName
Source§impl From<&str> for ObjectName
impl From<&str> for ObjectName
Source§impl From<RoaPayload> for ObjectName
impl From<RoaPayload> for ObjectName
Source§fn from(def: RoaPayload) -> Self
fn from(def: RoaPayload) -> Self
Converts to this type from the input type.
Source§impl From<RoaPayloadJsonMapKey> for ObjectName
impl From<RoaPayloadJsonMapKey> for ObjectName
Source§fn from(auth: RoaPayloadJsonMapKey) -> Self
fn from(auth: RoaPayloadJsonMapKey) -> Self
Converts to this type from the input type.
Source§impl Hash for ObjectName
impl Hash for ObjectName
Source§impl PartialEq for ObjectName
impl PartialEq for ObjectName
Source§impl Serialize for ObjectName
impl Serialize for ObjectName
impl StructuralPartialEq for ObjectName
Auto Trait Implementations§
impl Freeze for ObjectName
impl RefUnwindSafe for ObjectName
impl Send for ObjectName
impl Sync for ObjectName
impl Unpin for ObjectName
impl UnsafeUnpin for ObjectName
impl UnwindSafe for ObjectName
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ReportContent for T
impl<T> ReportContent for T
impl<T> Storable for T
Source§impl<T> Text for Twhere
T: Display,
impl<T> Text for Twhere
T: Display,
Source§fn write_escaped(
&self,
mode: TextEscape,
target: &mut impl Write,
) -> Result<(), Error>
fn write_escaped( &self, mode: TextEscape, target: &mut impl Write, ) -> Result<(), Error>
Write text escaped for the given mode to
target.Source§impl<T> ToHex for T
impl<T> ToHex for T
Source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Lower case
letters are used (e.g. f9b4ca)Source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Upper case
letters are used (e.g. F9B4CA)Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.