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
originalWasmMetadata
WasmMetadata(string, string)
OPA WebAssembly (Wasm) module files in the bundle.
public WasmMetadata(string Entrypoint, string Module)
Parameters
EntrypointstringA 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.
ModulestringA 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
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
Module
A string path to the Wasm module relative to the root of the bundle.
[JsonPropertyName("module")]
public string Module { get; init; }
Property Value
Methods
Deconstruct(out string, out string)
public void Deconstruct(out string Entrypoint, out string Module)
Parameters
Equals(WasmMetadata?)
public virtual bool Equals(WasmMetadata? other)
Parameters
otherWasmMetadata
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(WasmMetadata?, WasmMetadata?)
public static bool operator ==(WasmMetadata? left, WasmMetadata? right)
Parameters
leftWasmMetadatarightWasmMetadata
Returns
operator !=(WasmMetadata?, WasmMetadata?)
public static bool operator !=(WasmMetadata? left, WasmMetadata? right)
Parameters
leftWasmMetadatarightWasmMetadata