pub struct RegisterOptions<'a> {
pub provider: &'a str,
pub model: &'a str,
pub command: &'a str,
pub prompt_preview: Option<&'a str>,
pub session_id: Option<&'a str>,
pub session_name: Option<&'a str>,
pub root: Option<&'a str>,
}Expand description
Borrowed options for register. Field semantics mirror
ProcessEntry one-for-one.
Fields§
§provider: &'a strProvider name (e.g. "claude", "codex").
model: &'a strEffective model string (e.g. "sonnet").
command: &'a strSubcommand label stored in the entry: "run", "exec", "plan", etc.
Used by zag ps for display.
prompt_preview: Option<&'a str>First ~100 chars of the prompt, if any.
session_id: Option<&'a str>Session id this process is associated with (zag’s internal session_id,
not the provider-native one). Becomes ZAG_SESSION_ID for the child.
session_name: Option<&'a str>Optional human-friendly session name. Becomes ZAG_SESSION_NAME.
root: Option<&'a str>Project root passed through to the entry and ZAG_ROOT.
Auto Trait Implementations§
impl<'a> Freeze for RegisterOptions<'a>
impl<'a> RefUnwindSafe for RegisterOptions<'a>
impl<'a> Send for RegisterOptions<'a>
impl<'a> Sync for RegisterOptions<'a>
impl<'a> Unpin for RegisterOptions<'a>
impl<'a> UnsafeUnpin for RegisterOptions<'a>
impl<'a> UnwindSafe for RegisterOptions<'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