pub struct Params { /* private fields */ }Expand description
The complete resolved input to a projection, on the wire.
The values the configuration writes back, the record carries, and the projection renders from, with no precedence source.
Implementations§
Source§impl Params
impl Params
Sourcepub fn from_record(record: &Manifest) -> Self
pub fn from_record(record: &Manifest) -> Self
Reconstruct every projection parameter from the record alone, including the compatibility defaults applied when it was loaded.
Sourcepub fn resolve(
target: &Utf8Path,
flags: &Inputs<'_>,
config: Option<&Config>,
record: Option<&Manifest>,
purpose: Purpose,
) -> Result<Self, RkError>
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
observation, and finally the compiled defaults. Comparisons use
from_record alone.
§Errors
Refuses unresolved identity, an invalid release state, or a style an existing target has not answered.
Sourcepub const fn profile(&self) -> &ProfileSnapshot
pub const fn profile(&self) -> &ProfileSnapshot
What the project is.
Sourcepub const fn git(&self) -> &GitWorkflow
pub const fn git(&self) -> &GitWorkflow
The Git workflow parameters.
Sourcepub const fn capabilities(&self) -> &CapabilityRequests
pub const fn capabilities(&self) -> &CapabilityRequests
The capability requests.
Sourcepub fn technologies(&self) -> &[String]
pub fn technologies(&self) -> &[String]
The technologies present, sorted.
Sourcepub const fn release_mode(&self) -> ReleaseMode
pub const fn release_mode(&self) -> ReleaseMode
The release mode.
Sourcepub const fn style(&self) -> Option<Style>
pub const fn style(&self) -> Option<Style>
The release style, for an automatic release that answered it.
Sourcepub const fn nix_packaging(&self) -> bool
pub const fn nix_packaging(&self) -> bool
Whether this landing requested the Nix capability.
Sourcepub const fn reporting_policy(&self) -> bool
pub const fn reporting_policy(&self) -> bool
Whether this landing requested the reporting policy.
Sourcepub const fn code_scanning(&self) -> Option<Provider>
pub const fn code_scanning(&self) -> Option<Provider>
The code scanning provider this landing requested, if any.
Sourcepub fn repo(&self) -> &str
pub fn repo(&self) -> &str
The project path used by parameter-bearing files, empty where the target has no forge repository.
Sourcepub const fn checkout_mode(&self) -> CheckoutMode
pub const fn checkout_mode(&self) -> CheckoutMode
Where a topic branch opens.
Sourcepub const fn integration(&self) -> Integration
pub const fn integration(&self) -> Integration
Which authority moves an implementation onto the trunk.
Sourcepub fn line_prefix(&self) -> &str
pub fn line_prefix(&self) -> &str
The release-line prefix this landing writes into its artifacts, the compiled default where the release intent carries none.
Sourcepub fn security_contact(&self) -> &str
pub fn security_contact(&self) -> &str
The contact the landed policy names, empty for the forge’s own authored wording.
Sourcepub fn security_response(&self) -> &str
pub fn security_response(&self) -> &str
The acknowledgment window the landed policy promises.
Sourcepub fn canonical_flags(&self) -> String
pub fn canonical_flags(&self) -> String
The canonical identity and Git workflow flags, as rk init and
rk adopt take them: every resolved answer stated, so a follow-up
command a preview prints applies the decision that was previewed.
Sourcepub fn capability_flags(&self) -> String
pub fn capability_flags(&self) -> String
Every opt-in capability’s flag, as rk init and rk adopt take it.
The resolved answers, not the flags the caller typed: a follow-up command a preview prints must apply the decision that was previewed, and the preview’s decision is what resolution produced.
Sourcepub fn capability_toggles(&self) -> String
pub fn capability_toggles(&self) -> String
The same answers as rk upgrade takes them, every one stated.
An upgrade can turn a capability off as well as on, so absence is no answer there and each value is rendered explicitly. That is what makes a printed follow-up command reproduce the previewed decision rather than re-resolve the configured one.
Trait Implementations§
impl Eq for Params
Source§impl From<&Params> for Parameters
impl From<&Params> for Parameters
impl StructuralPartialEq for Params
Auto Trait Implementations§
impl Freeze for Params
impl RefUnwindSafe for Params
impl Send for Params
impl Sync for Params
impl Unpin for Params
impl UnsafeUnpin for Params
impl UnwindSafe for Params
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.