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

# WorkerLeave

> The leave a worker is on, which says they are on.

The leave a worker is on, which [Leave](https://klef.ai/docs/connector-sdk/reference/model-workers/workerstatus.md) says they are on.

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

**Implements:** `IEquatable<WorkerLeave>`

## Constructors

```csharp
public WorkerLeave(LeaveType Type, LocalDate? StartDate, LocalDate? ExpectedReturnDate)
```

The leave a worker is on, which [Leave](https://klef.ai/docs/connector-sdk/reference/model-workers/workerstatus.md) says they are on.

### Parameters

**Type** `LeaveType` *required*

**StartDate** `LocalDate?` *required*

**ExpectedReturnDate** `LocalDate?` *required*

## Fields

**Empty** `WorkerLeave` *required*

## Properties

**ExpectedReturnDate** `LocalDate?`

**StartDate** `LocalDate?`

**Type** `LeaveType` *required*

## Methods

### Deconstruct()

```csharp
public void Deconstruct(out LeaveType Type, out LocalDate? StartDate, out LocalDate? ExpectedReturnDate)
```

#### Parameters

**Type** `LeaveType` *required*

**StartDate** `LocalDate?` *required*

**ExpectedReturnDate** `LocalDate?` *required*

### Equals()

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

#### Parameters

**other** `WorkerLeave` *required*

#### Returns

`bool`

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

#### Parameters

**obj** `object` *required*

#### Returns

`bool`

### GetHashCode()

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

#### Returns

`int`

### operator !=()

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

#### Parameters

**left** `WorkerLeave` *required*

**right** `WorkerLeave` *required*

#### Returns

`bool`

### operator ==()

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

#### Parameters

**left** `WorkerLeave` *required*

**right** `WorkerLeave` *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.