pub enum TopicUpdateEntryRef<'a> {
Conventional {
security: bool,
packages: &'a HashMap<String, Option<String>>,
packages_v2: &'a HashMap<String, Option<String>>,
name: &'a HashMap<String, String>,
caution: Option<&'a HashMap<String, String>>,
},
Cumulative {
name: &'a HashMap<String, String>,
caution: Option<&'a HashMap<String, String>>,
topics: &'a [String],
count_packages_changed: usize,
security: bool,
},
}Variants§
Implementations§
Source§impl TopicUpdateEntryRef<'_>
impl TopicUpdateEntryRef<'_>
pub fn is_security(&self) -> bool
pub fn count_packages(&self) -> usize
Trait Implementations§
Source§impl<'a> Debug for TopicUpdateEntryRef<'a>
impl<'a> Debug for TopicUpdateEntryRef<'a>
Source§impl<'a> From<&'a TopicUpdateEntry> for TopicUpdateEntryRef<'a>
impl<'a> From<&'a TopicUpdateEntry> for TopicUpdateEntryRef<'a>
Source§fn from(value: &'a TopicUpdateEntry) -> Self
fn from(value: &'a TopicUpdateEntry) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for TopicUpdateEntryRef<'a>
impl<'a> RefUnwindSafe for TopicUpdateEntryRef<'a>
impl<'a> Send for TopicUpdateEntryRef<'a>
impl<'a> Sync for TopicUpdateEntryRef<'a>
impl<'a> Unpin for TopicUpdateEntryRef<'a>
impl<'a> UnsafeUnpin for TopicUpdateEntryRef<'a>
impl<'a> UnwindSafe for TopicUpdateEntryRef<'a>
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