pub struct Rule {
pub package: String,
pub version_range: String,
pub justification: String,
pub proposed_by: Option<String>,
pub proposed_at: DateTime<Utc>,
}Expand description
Risk-acceptance rule for one package + version-range.
Fields§
§package: String§version_range: String§justification: String§proposed_by: Option<String>Customer who’s proposing the rule. Typically resolved from CDP user
identity on the auth path; CLI accepts an explicit --proposed-by
flag when the run-time auth context can’t resolve it.
proposed_at: DateTime<Utc>Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnsafeUnpin for Rule
impl UnwindSafe for Rule
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