pub struct N3RuleDescriptor {
pub rule_type: RuleType,
pub party_did_hash: u64,
pub property_path_hash: u64,
pub action_object_hash: u64,
pub contract_hash: u64,
pub weight: Option<f32>,
pub expiry_unix32: u32,
}Fields§
§rule_type: RuleType§party_did_hash: u64§property_path_hash: u64§action_object_hash: u64§contract_hash: u64§weight: Option<f32>§expiry_unix32: u32Implementations§
Source§impl N3RuleDescriptor
impl N3RuleDescriptor
pub fn from_ast_rule( rule: &Rule<'_>, default_contract_hash: u64, default_expiry: u32, ) -> Result<Self, BridgeError>
pub fn from_stack_rule( rule: &StackRule<'_>, default_contract_hash: u64, default_expiry: u32, ) -> Result<Self, BridgeError>
Trait Implementations§
Source§impl Clone for N3RuleDescriptor
impl Clone for N3RuleDescriptor
impl Copy for N3RuleDescriptor
Source§impl Debug for N3RuleDescriptor
impl Debug for N3RuleDescriptor
Source§impl PartialEq for N3RuleDescriptor
impl PartialEq for N3RuleDescriptor
impl StructuralPartialEq for N3RuleDescriptor
Auto Trait Implementations§
impl Freeze for N3RuleDescriptor
impl RefUnwindSafe for N3RuleDescriptor
impl Send for N3RuleDescriptor
impl Sync for N3RuleDescriptor
impl Unpin for N3RuleDescriptor
impl UnsafeUnpin for N3RuleDescriptor
impl UnwindSafe for N3RuleDescriptor
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more