pub struct ClientOutputPaths {
pub rust: Option<PathBuf>,
pub javascript: Option<PathBuf>,
pub python: Option<PathBuf>,
pub llm: Vec<PathBuf>,
pub llm_manifest: Option<PathBuf>,
}Expand description
Output path configuration for each client.
Rust, JavaScript, and Python take a full output file path. LLM clients take a root directory and generate their complete bundle inside it. Parent directories will be created automatically if they don’t exist.
§Example
ⓘ
let paths = ClientOutputPaths::new()
.rust("crates/brk_client/src/lib.rs")
.javascript("modules/brk-client/index.js")
.python("packages/brk_client/__init__.py")
.llm_manifest("crates/brk_mcp/generated/manifest.json")
.llm("website")
.llm("website_next");Fields§
§rust: Option<PathBuf>Full path to Rust client file (e.g., “crates/brk_client/src/lib.rs”)
javascript: Option<PathBuf>Full path to JavaScript client file (e.g., “modules/brk-client/index.js”)
python: Option<PathBuf>Full path to Python client file (e.g., “packages/brk_client/init.py”)
llm: Vec<PathBuf>Root directories for generated LLM client bundles.
llm_manifest: Option<PathBuf>Full path to the machine-readable tool manifest in the LLM bundle.
Implementations§
Source§impl ClientOutputPaths
impl ClientOutputPaths
pub fn new() -> Self
pub fn rust(self, path: impl Into<PathBuf>) -> Self
pub fn javascript(self, path: impl Into<PathBuf>) -> Self
pub fn python(self, path: impl Into<PathBuf>) -> Self
pub fn llm(self, root: impl Into<PathBuf>) -> Self
pub fn llm_manifest(self, path: impl Into<PathBuf>) -> Self
Trait Implementations§
Source§impl Clone for ClientOutputPaths
impl Clone for ClientOutputPaths
Source§fn clone(&self) -> ClientOutputPaths
fn clone(&self) -> ClientOutputPaths
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClientOutputPaths
impl Debug for ClientOutputPaths
Source§impl Default for ClientOutputPaths
impl Default for ClientOutputPaths
Source§fn default() -> ClientOutputPaths
fn default() -> ClientOutputPaths
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ClientOutputPaths
impl RefUnwindSafe for ClientOutputPaths
impl Send for ClientOutputPaths
impl Sync for ClientOutputPaths
impl Unpin for ClientOutputPaths
impl UnsafeUnpin for ClientOutputPaths
impl UnwindSafe for ClientOutputPaths
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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