pub struct ConstraintRef {
pub base_type: Option<String>,
pub referred_type: Option<String>,
pub schema_location: Option<String>,
pub type_: Option<String>,
pub href: Option<String>,
pub id: String,
pub name: Option<String>,
pub version: Option<String>,
}Expand description
Constraint reference. The Constraint resource represents a policy/rule applied to an entity or entity spec.
Fields§
§base_type: Option<String>When sub-classing, this defines the super-class
referred_type: Option<String>The actual type of the target instance when needed for disambiguation.
schema_location: Option<String>A URI to a JSON-Schema file that defines additional attributes and relationships
type_: Option<String>When sub-classing, this defines the sub-class Extensible name
href: Option<String>Hyperlink reference
id: Stringunique identifier
name: Option<String>Name of the related entity.
version: Option<String>constraint version
Trait Implementations§
Source§impl Clone for ConstraintRef
impl Clone for ConstraintRef
Source§fn clone(&self) -> ConstraintRef
fn clone(&self) -> ConstraintRef
Returns a duplicate of the value. Read more
1.0.0 · 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 ConstraintRef
impl Debug for ConstraintRef
Source§impl Default for ConstraintRef
impl Default for ConstraintRef
Source§fn default() -> ConstraintRef
fn default() -> ConstraintRef
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConstraintRef
impl<'de> Deserialize<'de> for ConstraintRef
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
Source§impl Display for ConstraintRef
impl Display for ConstraintRef
Auto Trait Implementations§
impl Freeze for ConstraintRef
impl RefUnwindSafe for ConstraintRef
impl Send for ConstraintRef
impl Sync for ConstraintRef
impl Unpin for ConstraintRef
impl UnsafeUnpin for ConstraintRef
impl UnwindSafe for ConstraintRef
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