pub struct ResourceConstraintRelationship<'m> { /* private fields */ }Expand description
Strict borrowed projection, read against one release.
Implementations§
Source§impl<'m> ResourceConstraintRelationship<'m>
impl<'m> ResourceConstraintRelationship<'m>
Sourcepub fn try_new(
id: EntityId,
entity: &'m Entity,
release: SchemaVersion,
) -> ConstraintResult<Self>
pub fn try_new( id: EntityId, entity: &'m Entity, release: SchemaVersion, ) -> ConstraintResult<Self>
Construct from an entity of the exact expected kind, read
against release.
ConstraintView binds the model’s declared release; use
this when the release is known some other way.
§Errors
WrongEntityType for another entity, UnsupportedSchema
for a release this crate is not verified against (IFC4X1,
IFC4X2), and EntityNotInSchema for an entity the release
does not declare.
Sourcepub const fn release(self) -> SchemaVersion
pub const fn release(self) -> SchemaVersion
The release this projection reads against.
Source§impl<'m> ResourceConstraintRelationship<'m>
impl<'m> ResourceConstraintRelationship<'m>
Sourcepub fn name(self) -> ConstraintResult<Option<&'m str>>
pub fn name(self) -> ConstraintResult<Option<&'m str>>
Optional relationship name.
Sourcepub fn description(self) -> ConstraintResult<Option<&'m str>>
pub fn description(self) -> ConstraintResult<Option<&'m str>>
Optional relationship description.
Sourcepub fn relating_constraint(self) -> ConstraintResult<EntityId>
pub fn relating_constraint(self) -> ConstraintResult<EntityId>
Relating metric or objective.
Non-empty unique resource-select targets.
Trait Implementations§
Source§impl<'m> Clone for ResourceConstraintRelationship<'m>
impl<'m> Clone for ResourceConstraintRelationship<'m>
Source§fn clone(&self) -> ResourceConstraintRelationship<'m>
fn clone(&self) -> ResourceConstraintRelationship<'m>
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 moreimpl<'m> Copy for ResourceConstraintRelationship<'m>
Auto Trait Implementations§
impl<'m> Freeze for ResourceConstraintRelationship<'m>
impl<'m> RefUnwindSafe for ResourceConstraintRelationship<'m>
impl<'m> Send for ResourceConstraintRelationship<'m>
impl<'m> Sync for ResourceConstraintRelationship<'m>
impl<'m> Unpin for ResourceConstraintRelationship<'m>
impl<'m> UnsafeUnpin for ResourceConstraintRelationship<'m>
impl<'m> UnwindSafe for ResourceConstraintRelationship<'m>
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