pub struct SourceReview {
pub entity: EntityRef,
pub source: String,
pub source_id: Option<String>,
pub decision: ReviewDecision,
pub reviewed_at: u64,
}Expand description
One durable review decision, bound to the exact claim that was reviewed.
source_id is part of the identity on purpose. If a later fetch proposes a
different MusicBrainz object, the old answer cannot silently approve it.
Fields§
§entity: EntityRefStable entity reference, independent of catalog vector positions.
source: StringService that made the claim.
source_id: Option<String>Identifier that was accepted or rejected.
decision: ReviewDecisionThe explicit choice.
reviewed_at: u64Time at which the choice was made.
Trait Implementations§
Source§impl Clone for SourceReview
impl Clone for SourceReview
Source§fn clone(&self) -> SourceReview
fn clone(&self) -> SourceReview
Returns a duplicate 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 SourceReview
impl Debug for SourceReview
Source§impl PartialEq for SourceReview
impl PartialEq for SourceReview
impl Eq for SourceReview
impl StructuralPartialEq for SourceReview
Auto Trait Implementations§
impl Freeze for SourceReview
impl RefUnwindSafe for SourceReview
impl Send for SourceReview
impl Sync for SourceReview
impl Unpin for SourceReview
impl UnwindSafe for SourceReview
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