pub struct Rules {
pub law_hash: String,
pub society: String,
pub constraints: Vec<Constraint>,
pub permissions: Vec<String>,
pub prohibitions: Vec<String>,
}Expand description
Rules governing an action — law reference + constraints + permissions.
Fields§
§law_hash: StringSHA-256 of the governing law document
society: StringSociety LCT that issued these rules
constraints: Vec<Constraint>Constraints (rate limits, ATP minimums, witness requirements)
permissions: Vec<String>Permitted action types
prohibitions: Vec<String>Forbidden action types
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Rules
impl<'de> Deserialize<'de> for Rules
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 Rules
impl RefUnwindSafe for Rules
impl Send for Rules
impl Sync for Rules
impl Unpin for Rules
impl UnsafeUnpin for Rules
impl UnwindSafe for Rules
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