pub struct Profiles {
pub default: &'static str,
pub dir: Location,
pub rel: &'static str,
pub valid_name: fn(&str) -> bool,
}Expand description
Named profiles of a client (omp ~/.omp/profiles/<name>/agent/mcp.json).
Fields§
§default: &'static strThe name that selects McpSpec::user (default). It is also the
selection when clients.toml has no profiles key.
dir: LocationThe directory holding one directory per named profile.
rel: &'static strThe user file inside a profile’s directory, /-separated.
valid_name: fn(&str) -> boolWhether a profile name is valid for the client.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Profiles
impl Freeze for Profiles
impl Move for Profiles
impl RefUnwindSafe for Profiles
impl Send for Profiles
impl Sync for Profiles
impl Unpin for Profiles
impl UnsafeUnpin for Profiles
impl UnwindSafe for Profiles
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