pub struct ClientOutputPaths {
pub rust: Option<PathBuf>,
pub javascript: Option<PathBuf>,
pub python: Option<PathBuf>,
}Expand description
Output path configuration for each language client.
Each path should be the full path to the output file, not just a directory. 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");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”)
Implementations§
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 · 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 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
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