pub struct MemoryRelabelCommand {
pub about: String,
pub ref_id: String,
pub add: Vec<EntryLabelData>,
pub remove: Vec<EntryLabelData>,
pub why: String,
pub provenance: Option<MemoryProvenanceData>,
pub idempotency_key: String,
pub dry_run: bool,
pub label_policy: LabelPolicy,
pub intended_new: BTreeSet<String>,
}Expand description
Change the labels an entry stands in without rewriting its text: labels to add, labels to take off, and why. Translated against what the about holds, like an ingest, into one change the log keeps.
Fields§
§about: String§ref_id: String§add: Vec<EntryLabelData>§remove: Vec<EntryLabelData>§why: String§provenance: Option<MemoryProvenanceData>§idempotency_key: String§dry_run: bool§label_policy: LabelPolicy§intended_new: BTreeSet<String>Label keys the writer insists are new even where the catalogue holds one that resembles them: it read the catalogue and means something else. Those labels are left out of the resemblance check.
Trait Implementations§
Source§impl Clone for MemoryRelabelCommand
impl Clone for MemoryRelabelCommand
Source§fn clone(&self) -> MemoryRelabelCommand
fn clone(&self) -> MemoryRelabelCommand
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 MemoryRelabelCommand
impl Debug for MemoryRelabelCommand
impl Eq for MemoryRelabelCommand
Source§impl PartialEq for MemoryRelabelCommand
impl PartialEq for MemoryRelabelCommand
impl StructuralPartialEq for MemoryRelabelCommand
Auto Trait Implementations§
impl Freeze for MemoryRelabelCommand
impl RefUnwindSafe for MemoryRelabelCommand
impl Send for MemoryRelabelCommand
impl Sync for MemoryRelabelCommand
impl Unpin for MemoryRelabelCommand
impl UnsafeUnpin for MemoryRelabelCommand
impl UnwindSafe for MemoryRelabelCommand
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