pub struct ModificationRule {
pub name: String,
pub trigger: String,
pub action: String,
pub safety_check: bool,
}Expand description
Modification rule for self-improvement
Fields§
§name: String§trigger: String§action: String§safety_check: boolImplementations§
Trait Implementations§
Source§impl Clone for ModificationRule
impl Clone for ModificationRule
Source§fn clone(&self) -> ModificationRule
fn clone(&self) -> ModificationRule
Returns a duplicate of the value. Read more
1.0.0 · 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 ModificationRule
impl Debug for ModificationRule
Source§impl<'de> Deserialize<'de> for ModificationRule
impl<'de> Deserialize<'de> for ModificationRule
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ModificationRule
impl RefUnwindSafe for ModificationRule
impl Send for ModificationRule
impl Sync for ModificationRule
impl Unpin for ModificationRule
impl UnwindSafe for ModificationRule
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