> ## 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.

# FieldGrants

> What a principal holds on one field.

```csharp
public sealed record FieldGrants : IEquatable<FieldGrants>
```

**Implements:** `IEquatable<FieldGrants>`

## Constructors

```csharp
public FieldGrants(IReadOnlyList<string> Effective, IReadOnlyList<string> Direct)
```

What a principal holds on one field.

### Parameters

**Effective** `IReadOnlyList\<string\>` *required*

The entitlements held by any means.

**Direct** `IReadOnlyList\<string\>` *required*

The entitlements the connector can change.

## Fields

**None** `FieldGrants` *required*

Holds nothing on the field.

## Properties

**Direct** `IReadOnlyList\<string\>` *required*

The entitlements the connector can change.

**Effective** `IReadOnlyList\<string\>` *required*

The entitlements held by any means.

**Facts** `IReadOnlyList\<HoldingFact\>`

**Type:** `IReadOnlyList<HoldingFact>`

What the vendor reports about how values are held, or [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) when it reports nothing.

## Methods

### Deconstruct()

```csharp
public void Deconstruct(out IReadOnlyList<string> Effective, out IReadOnlyList<string> Direct)
```

#### Parameters

**Effective** `IReadOnlyList\<string\>` *required*

**Direct** `IReadOnlyList\<string\>` *required*

### Equals()

```csharp
public bool Equals(FieldGrants? other)
```

#### Parameters

**other** `FieldGrants` *required*

#### Returns

`bool`

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

#### Parameters

**obj** `object` *required*

#### Returns

`bool`

### FromDirect()

```csharp
public static FieldGrants FromDirect(IReadOnlyList<string> direct)
```

Grants held only directly.

#### Parameters

**direct** `IReadOnlyList\<string\>` *required*

#### Returns

`FieldGrants`

### GetHashCode()

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

#### Returns

`int`

### operator !=()

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

#### Parameters

**left** `FieldGrants` *required*

**right** `FieldGrants` *required*

#### Returns

`bool`

### operator ==()

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

#### Parameters

**left** `FieldGrants` *required*

**right** `FieldGrants` *required*

#### Returns

`bool`

### ToGrants()

```csharp
public IEnumerable<Grant> ToGrants(Func<string, Grant> grantOf, Func<PrincipalRef, EntitlementRef> throughOf)
```

Lists what one holder holds, a grant each.

#### Parameters

**grantOf** `Func\<String,Grant\>` *required*

**Type:** `Func<String,Grant>`

**throughOf** `Func\<PrincipalRef,EntitlementRef\>` *required*

**Type:** `Func<PrincipalRef,EntitlementRef>`

#### Returns

`IEnumerable<Grant>`

### ToString()

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

#### Returns

`string`


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