pub struct GeneratedCodeReadonlyRule;Expand description
Denies direct edits to generated code paths.
Trait Implementations§
Source§impl Clone for GeneratedCodeReadonlyRule
impl Clone for GeneratedCodeReadonlyRule
Source§fn clone(&self) -> GeneratedCodeReadonlyRule
fn clone(&self) -> GeneratedCodeReadonlyRule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GeneratedCodeReadonlyRule
impl Debug for GeneratedCodeReadonlyRule
Source§impl Default for GeneratedCodeReadonlyRule
impl Default for GeneratedCodeReadonlyRule
Source§fn default() -> GeneratedCodeReadonlyRule
fn default() -> GeneratedCodeReadonlyRule
Returns the “default value” for a type. Read more
Source§impl PolicyRule for GeneratedCodeReadonlyRule
impl PolicyRule for GeneratedCodeReadonlyRule
Source§fn evaluate(
&self,
context: &PolicyContext<'_>,
) -> Result<Vec<Diagnostic>, RepoctlError>
fn evaluate( &self, context: &PolicyContext<'_>, ) -> Result<Vec<Diagnostic>, RepoctlError>
Evaluates the rule.
Auto Trait Implementations§
impl Freeze for GeneratedCodeReadonlyRule
impl RefUnwindSafe for GeneratedCodeReadonlyRule
impl Send for GeneratedCodeReadonlyRule
impl Sync for GeneratedCodeReadonlyRule
impl Unpin for GeneratedCodeReadonlyRule
impl UnsafeUnpin for GeneratedCodeReadonlyRule
impl UnwindSafe for GeneratedCodeReadonlyRule
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