pub struct MediaWrite<'a> {
pub blob_id: &'a str,
pub path: &'a str,
pub producer: &'a Producer,
pub tool_version: &'a str,
pub outcome: &'a MediaOutcome,
pub replace: bool,
}Expand description
The values crate::Store::record_media_content writes.
Fields§
§blob_id: &'a strGit blob id of the source media.
path: &'a strRepository path the blob was seen at.
producer: &'a ProducerWho produced the text — or who would have, on a gated skip: a refusal belongs to a producer identity too, so changing the model re-evaluates the blob instead of inheriting the old identity’s skip.
tool_version: &'a strVersion of the tool doing the writing.
outcome: &'a MediaOutcomeWhat the run concluded.
replace: boolReplace an existing record for this exact (blob, producer) instead of
leaving it alone. Only media build --force sets this: a different
producer never mutates, it writes a new record.
Trait Implementations§
Source§impl<'a> Clone for MediaWrite<'a>
impl<'a> Clone for MediaWrite<'a>
Source§fn clone(&self) -> MediaWrite<'a>
fn clone(&self) -> MediaWrite<'a>
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 moreimpl<'a> Copy for MediaWrite<'a>
Auto Trait Implementations§
impl<'a> Freeze for MediaWrite<'a>
impl<'a> RefUnwindSafe for MediaWrite<'a>
impl<'a> Send for MediaWrite<'a>
impl<'a> Sync for MediaWrite<'a>
impl<'a> Unpin for MediaWrite<'a>
impl<'a> UnsafeUnpin for MediaWrite<'a>
impl<'a> UnwindSafe for MediaWrite<'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