pub struct ModifiableEdit {
pub base_edit: ProposedEdit,
pub modifications: Vec<EditModification>,
pub approval_state: ApprovalState,
pub processing_metadata: ProcessingMetadata,
}
Fields§
§base_edit: ProposedEdit
§modifications: Vec<EditModification>
§approval_state: ApprovalState
§processing_metadata: ProcessingMetadata
Implementations§
Source§impl ModifiableEdit
impl ModifiableEdit
pub fn from_proposed_edit(edit: ProposedEdit) -> Self
Sourcepub fn from_proposed_edit_with_approval_level(
edit: ProposedEdit,
required_level: ApprovalLevel,
) -> Self
pub fn from_proposed_edit_with_approval_level( edit: ProposedEdit, required_level: ApprovalLevel, ) -> Self
Issue #19: Initialize with granular approval system
Sourcepub fn add_approval_record(
&mut self,
approval: ApprovalRecord,
) -> Result<(), String>
pub fn add_approval_record( &mut self, approval: ApprovalRecord, ) -> Result<(), String>
Issue #19: Add approval record to granular approval system
Sourcepub fn evaluate_granular_approval(&mut self) -> Result<(), String>
pub fn evaluate_granular_approval(&mut self) -> Result<(), String>
Issue #19: Check if edit meets granular approval requirements
pub fn compute_final_code(&self) -> String
pub fn add_modification(&mut self, modification: EditModification)
pub fn set_approval_state(&mut self, state: ApprovalState)
pub fn get_effective_confidence(&self) -> f64
pub fn is_approved(&self) -> bool
pub fn is_ready_for_application(&self) -> bool
Trait Implementations§
Source§impl Clone for ModifiableEdit
impl Clone for ModifiableEdit
Source§fn clone(&self) -> ModifiableEdit
fn clone(&self) -> ModifiableEdit
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 moreAuto Trait Implementations§
impl Freeze for ModifiableEdit
impl RefUnwindSafe for ModifiableEdit
impl Send for ModifiableEdit
impl Sync for ModifiableEdit
impl Unpin for ModifiableEdit
impl UnwindSafe for ModifiableEdit
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