Struct krill::daemon::ca::RoaUpdates
source · pub struct RoaUpdates { /* private fields */ }
Expand description
Describes an update to the set of ROAs under a ResourceClass.
Implementations§
source§impl RoaUpdates
impl RoaUpdates
pub fn new( updated: HashMap<RoaPayloadJsonMapKey, RoaInfo>, removed: Vec<RoaPayloadJsonMapKey>, aggregate_updated: HashMap<RoaAggregateKey, RoaInfo>, aggregate_removed: Vec<RoaAggregateKey> ) -> Self
pub fn is_empty(&self) -> bool
pub fn contains_changes(&self) -> bool
pub fn update(&mut self, auth: RoaPayloadJsonMapKey, roa: RoaInfo)
pub fn remove(&mut self, auth: RoaPayloadJsonMapKey)
pub fn remove_aggregate(&mut self, key: RoaAggregateKey)
pub fn update_aggregate(&mut self, key: RoaAggregateKey, info: RoaInfo)
pub fn added_roas(&self) -> HashMap<ObjectName, RoaInfo>
pub fn removed_roas(&self) -> Vec<ObjectName>
pub fn unpack( self ) -> (HashMap<RoaPayloadJsonMapKey, RoaInfo>, Vec<RoaPayloadJsonMapKey>, HashMap<RoaAggregateKey, RoaInfo>, Vec<RoaAggregateKey>)
Trait Implementations§
source§impl Clone for RoaUpdates
impl Clone for RoaUpdates
source§fn clone(&self) -> RoaUpdates
fn clone(&self) -> RoaUpdates
Returns a copy of the value. Read more
1.0.0 · 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 RoaUpdates
impl Debug for RoaUpdates
source§impl Default for RoaUpdates
impl Default for RoaUpdates
source§fn default() -> RoaUpdates
fn default() -> RoaUpdates
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for RoaUpdates
impl<'de> Deserialize<'de> for RoaUpdates
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 RoaUpdates
impl Display for RoaUpdates
source§impl From<OldRoaUpdates> for RoaUpdates
impl From<OldRoaUpdates> for RoaUpdates
source§fn from(old: OldRoaUpdates) -> Self
fn from(old: OldRoaUpdates) -> Self
Converts to this type from the input type.
source§impl PartialEq for RoaUpdates
impl PartialEq for RoaUpdates
source§fn eq(&self, other: &RoaUpdates) -> bool
fn eq(&self, other: &RoaUpdates) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for RoaUpdates
impl Serialize for RoaUpdates
impl Eq for RoaUpdates
impl StructuralEq for RoaUpdates
impl StructuralPartialEq for RoaUpdates
Auto Trait Implementations§
impl RefUnwindSafe for RoaUpdates
impl Send for RoaUpdates
impl Sync for RoaUpdates
impl Unpin for RoaUpdates
impl UnwindSafe for RoaUpdates
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.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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
.