Class DataResponse<T>
- Namespace
- Nexus.Api
- Assembly
- Nexus.Api.dll
Result of a data request with a certain resource path.
public sealed record DataResponse<T> : IEquatable<DataResponse<T>> where T : struct
Type Parameters
TThe element type of the data.
- Inheritance
-
DataResponse<T>
- Implements
- Inherited Members
Constructors
DataResponse(ResourceInfo, ReadOnlyMemory<T>)
Result of a data request with a certain resource path.
public DataResponse(ResourceInfo Info, ReadOnlyMemory<T> Values)
Parameters
InfoResourceInfoThe resource metadata.
ValuesReadOnlyMemory<T>The data.
Properties
Info
The resource metadata.
public ResourceInfo Info { get; init; }
Property Value
Values
The data.
public ReadOnlyMemory<T> Values { get; init; }