pub struct Params { /* private fields */ }Expand description
The complete input to a projection. Comparisons reconstruct it from the landing record; landing verbs resolve their candidate inputs.
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 detection,
and finally the compiled defaults. Comparisons use from_record alone.
§Errors
Refuses unresolved identity or a style an existing target has not answered.
Sourcepub const fn scorecard(&self) -> bool
pub const fn scorecard(&self) -> bool
Whether this landing opted into the Scorecard capability.
Sourcepub const fn code_scanning(&self) -> Option<Provider>
pub const fn code_scanning(&self) -> Option<Provider>
The code scanning provider this landing opted into, if any.
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.
Sourcepub fn line_prefix(&self) -> &str
pub fn line_prefix(&self) -> &str
The release-line prefix this landing writes into its artifacts.
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.
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.