Skip to main content

Params

Struct Params 

Source
pub struct Params { /* private fields */ }
Expand description

The complete input to a payload projection. Comparisons reconstruct it from the landing record; landing verbs resolve their candidate inputs.

Implementations§

Source§

impl Params

Source

pub fn from_record(record: &Manifest) -> Self

Reconstruct every projection parameter from the record alone, including the compatibility defaults applied when it was loaded.

Source

pub fn resolve( target: &Utf8Path, flags: &Inputs<'_>, config: Option<&Config>, record: Option<&Manifest>, purpose: Purpose, ) -> Result<Self, RkError>

Resolve flags, configuration, recorded compatibility inputs or detection, and finally the compiled defaults. Comparisons use from_record alone.

§Errors

Refuses unresolved identity or a style an existing target has not answered.

Source

pub fn tech(&self) -> &str

The binding selected for this landing.

Source

pub fn forge(&self) -> &str

The forge selected for this landing.

Source

pub const fn nix(&self) -> bool

Whether this landing opted into Nix.

Source

pub fn repo(&self) -> &str

The project path used by parameter-bearing blocks.

Source

pub const fn workflow(&self) -> Workflow

The mode used by parameter-bearing blocks.

Source

pub const fn style(&self) -> Option<Style>

The release style used by parameter-bearing blocks.

Source

pub fn trunk(&self) -> &str

The one permanent branch this landing writes into its artifacts.

Source

pub fn line_prefix(&self) -> &str

The release-line prefix this landing writes into its artifacts.

Trait Implementations§

Source§

impl Debug for Params

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

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.