pub struct Candidate {
pub destination: String,
pub kind: Kind,
pub placement: Placement,
pub bytes: Vec<u8>,
pub region: Option<Vec<u8>>,
pub sources: Vec<String>,
}Expand description
One proposed destination.
Fields§
§destination: StringThe destination, relative to the target root.
kind: KindWho owns the bytes after landing.
placement: PlacementThe whole file, or the one marked region.
bytes: Vec<u8>The complete proposed destination bytes. For a region this is the complete spliced document, computed from the existing document in the evidence, so a staged view equals what production writes.
region: Option<Vec<u8>>The rendered block alone for a region destination: what the
receipt digests. None for a whole file.
sources: Vec<String>The embedded source paths the candidate was rendered from, each carrying its distribution root as the first segment.
Trait Implementations§
impl Eq for Candidate
impl StructuralPartialEq for Candidate
Auto Trait Implementations§
impl Freeze for Candidate
impl RefUnwindSafe for Candidate
impl Send for Candidate
impl Sync for Candidate
impl Unpin for Candidate
impl UnsafeUnpin for Candidate
impl UnwindSafe for Candidate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.