pub struct NewCandidate<'a> {
pub page_id: &'a str,
pub snapshot: &'a [u8],
pub status: CandidateStatus,
pub meta: CandidateMeta<'a>,
}Expand description
The describing inputs for a new candidate snapshot: which page it captures,
the .zen snapshot bytes, its lifecycle status, and optional metadata.
Fields§
§page_id: &'a strThe page or source document this candidate snapshots.
snapshot: &'a [u8]Raw .zen snapshot bytes to store in the object store.
status: CandidateStatusLifecycle status for this candidate at creation time.
meta: CandidateMeta<'a>Optional workflow metadata (role, target, policy, notes).
Trait Implementations§
Source§impl<'a> Clone for NewCandidate<'a>
impl<'a> Clone for NewCandidate<'a>
Source§fn clone(&self) -> NewCandidate<'a>
fn clone(&self) -> NewCandidate<'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 NewCandidate<'a>
Auto Trait Implementations§
impl<'a> Freeze for NewCandidate<'a>
impl<'a> RefUnwindSafe for NewCandidate<'a>
impl<'a> Send for NewCandidate<'a>
impl<'a> Sync for NewCandidate<'a>
impl<'a> Unpin for NewCandidate<'a>
impl<'a> UnsafeUnpin for NewCandidate<'a>
impl<'a> UnwindSafe for NewCandidate<'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