> ## Documentation Index
> Fetch the complete documentation index at: https://klef.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# ConstraintManifest

> A rule across connection fields, checked when a connection is saved.

```csharp
[JsonPolymorphic(TypeDiscriminatorPropertyName = "kind")]
[JsonDerivedType(typeof(RequiredTogetherConstraintManifest), "required_together")]
[JsonDerivedType(typeof(AtLeastOneConstraintManifest), "at_least_one")]
[JsonDerivedType(typeof(MutuallyExclusiveConstraintManifest), "mutually_exclusive")]
[JsonDerivedType(typeof(DependentOnConstraintManifest), "dependent_on")]
public abstract record ConstraintManifest : IEquatable<ConstraintManifest>
```

**Implements:** `IEquatable<ConstraintManifest>`

## Constructors

```csharp
protected ConstraintManifest()
```

```csharp
protected ConstraintManifest(ConstraintManifest original)
```

### Parameters

**original** `ConstraintManifest` *required*

## Properties

**EqualityContract** `Type` *required*

## Methods

### Equals()

```csharp
public virtual bool Equals(ConstraintManifest? other)
```

#### Parameters

**other** `ConstraintManifest` *required*

#### Returns

`bool`

```csharp
public override bool Equals(object? obj)
```

#### Parameters

**obj** `object` *required*

#### Returns

`bool`

### GetHashCode()

```csharp
public override int GetHashCode()
```

#### Returns

`int`

### NamedFields()

```csharp
public abstract IEnumerable<string> NamedFields()
```

#### Returns

`IEnumerable<string>`

### operator !=()

```csharp
public static bool operator !=(ConstraintManifest? left, ConstraintManifest? right)
```

#### Parameters

**left** `ConstraintManifest` *required*

**right** `ConstraintManifest` *required*

#### Returns

`bool`

### operator ==()

```csharp
public static bool operator ==(ConstraintManifest? left, ConstraintManifest? right)
```

#### Parameters

**left** `ConstraintManifest` *required*

**right** `ConstraintManifest` *required*

#### Returns

`bool`

### PrintMembers()

```csharp
protected virtual bool PrintMembers(StringBuilder builder)
```

#### Parameters

**builder** `StringBuilder` *required*

#### Returns

`bool`

### ToString()

```csharp
public override string ToString()
```

#### Returns

`string`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.