pub struct Routes { /* private fields */ }
Expand description
The current authorizations and corresponding meta-information for a CA.
Implementations§
source§impl Routes
impl Routes
pub fn filter(&self, resources: &ResourceSet) -> Self
pub fn all(&self) -> impl Iterator<Item = (&RoaPayloadJsonMapKey, &RouteInfo)>
pub fn roa_configurations(&self) -> Vec<RoaConfiguration>
pub fn roa_payload_keys(&self) -> impl Iterator<Item = &RoaPayloadJsonMapKey>
pub fn into_roa_payload_keys(self) -> Vec<RoaPayloadJsonMapKey>
pub fn as_aggregates( &self ) -> HashMap<RoaAggregateKey, Vec<RoaPayloadJsonMapKey>>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn info(&self, auth: &RoaPayloadJsonMapKey) -> Option<&RouteInfo>
pub fn has(&self, auth: &RoaPayloadJsonMapKey) -> bool
sourcepub fn add(&mut self, auth: RoaPayloadJsonMapKey)
pub fn add(&mut self, auth: RoaPayloadJsonMapKey)
Adds a new authorization
sourcepub fn comment(&mut self, auth: &RoaPayloadJsonMapKey, comment: Option<String>)
pub fn comment(&mut self, auth: &RoaPayloadJsonMapKey, comment: Option<String>)
Updates the comment for an authorization
sourcepub fn remove(&mut self, auth: &RoaPayloadJsonMapKey) -> bool
pub fn remove(&mut self, auth: &RoaPayloadJsonMapKey) -> bool
Removes an authorization
Trait Implementations§
source§impl<'de> Deserialize<'de> for Routes
impl<'de> Deserialize<'de> for Routes
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 Routes
impl PartialEq for Routes
impl Eq for Routes
impl StructuralEq for Routes
impl StructuralPartialEq for Routes
Auto Trait Implementations§
impl RefUnwindSafe for Routes
impl Send for Routes
impl Sync for Routes
impl Unpin for Routes
impl UnwindSafe for Routes
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.