pub struct ModelPolicyBuilderState {
pub scope: ModelScope,
pub harness_index: usize,
pub model: String,
pub reasoning_index: usize,
pub dry_run: bool,
pub refresh_integrity: bool,
pub focused_field: usize,
}Expand description
State for the model policy builder UI.
Fields§
§scope: ModelScope§harness_index: usizeIndex into CAPABLE_HARNESSES.
model: StringModel name or “auto”; empty leaves the model field of the rule untouched.
reasoning_index: usizeIndex into [MODEL_POLICY_REASONING_CYCLE].
dry_run: bool§refresh_integrity: boolChain npm run asset-integrity:write after a successful apply.
focused_field: usizeImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ModelPolicyBuilderState
impl RefUnwindSafe for ModelPolicyBuilderState
impl Send for ModelPolicyBuilderState
impl Sync for ModelPolicyBuilderState
impl Unpin for ModelPolicyBuilderState
impl UnsafeUnpin for ModelPolicyBuilderState
impl UnwindSafe for ModelPolicyBuilderState
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more