pub struct PredictionRuleInputsV1 { /* private fields */ }Expand description
Normalized rule inputs whose complete declaration controls V4 facet demand.
Implementations§
Source§impl PredictionRuleInputsV1
impl PredictionRuleInputsV1
Sourcepub fn new(
runtime_node_selectors: Vec<String>,
) -> Result<Self, PredictionContractError>
pub fn new( runtime_node_selectors: Vec<String>, ) -> Result<Self, PredictionContractError>
Bind the complete normalized selector declaration. Compatibility aliases must be resolved by the caller before constructing this value.
Sourcepub const fn contract_id(&self) -> &'static str
pub const fn contract_id(&self) -> &'static str
Immutable rule-input contract id.
Sourcepub fn runtime_node_selectors(&self) -> &[String]
pub fn runtime_node_selectors(&self) -> &[String]
Complete normalized runtime-node selector declaration, in declaration order.
Trait Implementations§
Source§impl Clone for PredictionRuleInputsV1
impl Clone for PredictionRuleInputsV1
Source§fn clone(&self) -> PredictionRuleInputsV1
fn clone(&self) -> PredictionRuleInputsV1
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 PredictionRuleInputsV1
impl Debug for PredictionRuleInputsV1
Source§impl<'de> Deserialize<'de> for PredictionRuleInputsV1
impl<'de> Deserialize<'de> for PredictionRuleInputsV1
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
impl Eq for PredictionRuleInputsV1
Source§impl PartialEq for PredictionRuleInputsV1
impl PartialEq for PredictionRuleInputsV1
Source§impl Serialize for PredictionRuleInputsV1
impl Serialize for PredictionRuleInputsV1
impl StructuralPartialEq for PredictionRuleInputsV1
Auto Trait Implementations§
impl Freeze for PredictionRuleInputsV1
impl RefUnwindSafe for PredictionRuleInputsV1
impl Send for PredictionRuleInputsV1
impl Sync for PredictionRuleInputsV1
impl Unpin for PredictionRuleInputsV1
impl UnsafeUnpin for PredictionRuleInputsV1
impl UnwindSafe for PredictionRuleInputsV1
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