Table of Contents

Class WasmMetadata

Namespace
OpaDotNet.Compilation.Abstractions
Assembly
OpaDotNet.Compilation.Abstractions.dll

OPA WebAssembly (Wasm) module files in the bundle.

public record WasmMetadata : IEquatable<WasmMetadata>
Inheritance
WasmMetadata
Implements
Inherited Members

Constructors

WasmMetadata(WasmMetadata)

protected WasmMetadata(WasmMetadata original)

Parameters

original WasmMetadata

WasmMetadata(string, string)

OPA WebAssembly (Wasm) module files in the bundle.

public WasmMetadata(string Entrypoint, string Module)

Parameters

Entrypoint string

A string path defining what query path the wasm module is built to evaluate. Once loaded any usage of this path in a query will use the Wasm module to compute the value.

Module string

A string path to the Wasm module relative to the root of the bundle.

Properties

Entrypoint

A string path defining what query path the wasm module is built to evaluate. Once loaded any usage of this path in a query will use the Wasm module to compute the value.

[JsonPropertyName("entrypoint")]
public string Entrypoint { get; init; }

Property Value

string

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Module

A string path to the Wasm module relative to the root of the bundle.

[JsonPropertyName("module")]
public string Module { get; init; }

Property Value

string

Methods

Deconstruct(out string, out string)

public void Deconstruct(out string Entrypoint, out string Module)

Parameters

Entrypoint string
Module string

Equals(WasmMetadata?)

public virtual bool Equals(WasmMetadata? other)

Parameters

other WasmMetadata

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(WasmMetadata?, WasmMetadata?)

public static bool operator ==(WasmMetadata? left, WasmMetadata? right)

Parameters

left WasmMetadata
right WasmMetadata

Returns

bool

operator !=(WasmMetadata?, WasmMetadata?)

public static bool operator !=(WasmMetadata? left, WasmMetadata? right)

Parameters

left WasmMetadata
right WasmMetadata

Returns

bool