Skip to main content

BinaryQuery

Struct BinaryQuery 

Source
pub struct BinaryQuery<'a> {
    pub bin: &'a str,
    pub app_root: &'a Path,
    pub workspace_roots: Vec<PathBuf>,
    pub broker_root: Option<PathBuf>,
    pub extra_env: Option<&'a str>,
    pub pointer_file: Option<&'a str>,
    pub app_relative: Option<&'a str>,
    pub env: &'a dyn Fn(&str) -> Option<String>,
}
Expand description

Inputs to resolve. env is injectable so tests never read the process environment.

Fields§

§bin: &'a str

Cargo target name (executable stem), e.g. mailright.

§app_root: &'a Path§workspace_roots: Vec<PathBuf>

Cargo workspace roots to match against the broker’s canonicalRoot, first match wins per entry.

§broker_root: Option<PathBuf>

<managed root>/rightkit-build-control; None skips the broker step.

§extra_env: Option<&'a str>

The app-specific env var name (ui.binary_env).

§pointer_file: Option<&'a str>

Pointer file path, relative to the app root unless absolute.

§app_relative: Option<&'a str>

The configured ui.binaries path for this platform, relative to the app root.

§env: &'a dyn Fn(&str) -> Option<String>

Auto Trait Implementations§

§

impl<'a> !RefUnwindSafe for BinaryQuery<'a>

§

impl<'a> !Send for BinaryQuery<'a>

§

impl<'a> !Sync for BinaryQuery<'a>

§

impl<'a> !UnwindSafe for BinaryQuery<'a>

§

impl<'a> Freeze for BinaryQuery<'a>

§

impl<'a> Unpin for BinaryQuery<'a>

§

impl<'a> UnsafeUnpin for BinaryQuery<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.