Table of Contents

Class FeatureAttributeRule

Namespace
Honua.Sdk.Abstractions.Features
Assembly
Honua.Sdk.Abstractions.dll

Attribute rule metadata advertised by a provider.

public sealed record FeatureAttributeRule : IEquatable<FeatureAttributeRule>
Inheritance
FeatureAttributeRule
Implements
Inherited Members

Properties

ErrorCode

Provider error number or code associated with the rule.

public string? ErrorCode { get; init; }

Property Value

string

ErrorMessage

Provider validation message associated with the rule.

public string? ErrorMessage { get; init; }

Property Value

string

ExcludeFromClientEvaluation

Whether clients should avoid evaluating the rule locally.

public bool ExcludeFromClientEvaluation { get; init; }

Property Value

bool

Expression

Provider expression body when it is safe to expose to clients.

public string? Expression { get; init; }

Property Value

string

ExpressionLanguage

Provider expression language, such as Arcade or CQL.

public string? ExpressionLanguage { get; init; }

Property Value

string

FieldName

Field the rule targets, when field-specific.

public string? FieldName { get; init; }

Property Value

string

IsEnabled

Whether the rule is enabled by the provider.

public bool IsEnabled { get; init; }

Property Value

bool

Name

Rule display or lookup name.

public string? Name { get; init; }

Property Value

string

Raw

Raw provider rule payload.

public JsonElement? Raw { get; init; }

Property Value

JsonElement?

RuleId

Stable rule identifier.

public required string RuleId { get; init; }

Property Value

string

Triggers

Edit triggers that run the rule.

public IReadOnlyList<FeatureAttributeRuleTrigger> Triggers { get; init; }

Property Value

IReadOnlyList<FeatureAttributeRuleTrigger>

Type

Rule kind.

public FeatureAttributeRuleType Type { get; init; }

Property Value

FeatureAttributeRuleType