pub struct ApplicabilityTarget {
pub entity: String,
pub predefined_type: Option<String>,
pub context: Option<ApplicabilityContext>,
}Expand description
IFC object/type tested against catalog applicability.
Fields§
§entity: StringIFC entity name of the object or type being tested.
predefined_type: Option<String>Predefined type of the object or type being tested, if any.
context: Option<ApplicabilityContext>None asks only the entity/predefined-type question.
Implementations§
Source§impl ApplicabilityTarget
impl ApplicabilityTarget
Sourcepub fn new(
entity: impl Into<String>,
predefined_type: Option<impl Into<String>>,
) -> Self
pub fn new( entity: impl Into<String>, predefined_type: Option<impl Into<String>>, ) -> Self
Build a target with no applicability-mode context; only entity and predefined type are matched.
Sourcepub fn with_context(self, context: ApplicabilityContext) -> Self
pub fn with_context(self, context: ApplicabilityContext) -> Self
Attach an applicability-mode context, restricting matches to
templates whose set_type supports that context.
Trait Implementations§
Source§impl Clone for ApplicabilityTarget
impl Clone for ApplicabilityTarget
Source§fn clone(&self) -> ApplicabilityTarget
fn clone(&self) -> ApplicabilityTarget
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 ApplicabilityTarget
impl Debug for ApplicabilityTarget
impl Eq for ApplicabilityTarget
Source§impl PartialEq for ApplicabilityTarget
impl PartialEq for ApplicabilityTarget
impl StructuralPartialEq for ApplicabilityTarget
Auto Trait Implementations§
impl Freeze for ApplicabilityTarget
impl RefUnwindSafe for ApplicabilityTarget
impl Send for ApplicabilityTarget
impl Sync for ApplicabilityTarget
impl Unpin for ApplicabilityTarget
impl UnsafeUnpin for ApplicabilityTarget
impl UnwindSafe for ApplicabilityTarget
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