pub struct ResolveProjectTrustedOptions<'a> {
pub cwd: PathBuf,
pub trust_store: &'a ProjectTrustStore,
pub trust_override: Option<bool>,
pub default_project_trust: DefaultProjectTrust,
pub extension_hook: Option<ProjectTrustExtensionHook<'a>>,
pub ui: Option<&'a mut dyn TrustUi>,
pub on_extension_error: Option<&'a mut dyn FnMut(String)>,
}Expand description
Options for resolve_project_trusted.
Fields§
§cwd: PathBufProject working directory under consideration.
trust_store: &'a ProjectTrustStorePersistent trust store.
trust_override: Option<bool>CLI --approve / --no-approve override.
default_project_trust: DefaultProjectTrustGlobal defaultProjectTrust setting (defaults to ask).
extension_hook: Option<ProjectTrustExtensionHook<'a>>Optional extension project_trust hook.
Invoked with the project cwd. Return Ok(Some(result)) when an extension
produced a decision payload; trusted: Undecided continues the built-in
flow. Return Ok(None) when no extension handled the event.
Err(message) is reported through Self::on_extension_error and
treated as no extension decision.
ui: Option<&'a mut dyn TrustUi>Optional interactive UI. When absent or has_ui() == false, ask-mode
falls through to false.
on_extension_error: Option<&'a mut dyn FnMut(String)>Receives extension error strings in the exact coding-agent format.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ResolveProjectTrustedOptions<'a>
impl<'a> !Send for ResolveProjectTrustedOptions<'a>
impl<'a> !Sync for ResolveProjectTrustedOptions<'a>
impl<'a> !UnwindSafe for ResolveProjectTrustedOptions<'a>
impl<'a> Freeze for ResolveProjectTrustedOptions<'a>
impl<'a> Unpin for ResolveProjectTrustedOptions<'a>
impl<'a> UnsafeUnpin for ResolveProjectTrustedOptions<'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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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 moreCreates a shared type from an unshared type.