Table of Contents

Class InboundForwardRuleCondition

Namespace
Mailtrap.Inbound.Models
Assembly
Mailtrap.Abstractions.dll

Represents an inbound forward rule condition.

public sealed record InboundForwardRuleCondition : IEquatable<InboundForwardRuleCondition>
Inheritance
InboundForwardRuleCondition
Implements

Properties

HeaderKey

Gets or sets the header name.

[JsonPropertyName("header_key")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? HeaderKey { get; set; }

Property Value

string

Header name.

MatchType

Gets or sets the match type.

[JsonPropertyName("match_type")]
public ForwardRuleMatchType? MatchType { get; set; }

Property Value

ForwardRuleMatchType

Match type.

Operator

Gets or sets the comparison operator.

[JsonPropertyName("operator")]
public ForwardRuleOperator? Operator { get; set; }

Property Value

ForwardRuleOperator

Comparison operator.

Value

Gets or sets the condition value.

[JsonPropertyName("value")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Value { get; set; }

Property Value

string

Condition value.