Table of Contents

Class R2Result<T>

Namespace
Cloudflare.NET.R2.Models
Assembly
Cloudflare.NET.R2.dll

Represents the result of an R2 operation that returns a data payload in addition to billable metrics.

public record R2Result<T> : IEquatable<R2Result<T>>

Type Parameters

T

The type of the data payload.

Inheritance
R2Result<T>
Implements
Inherited Members

Constructors

R2Result(T, R2Result)

Represents the result of an R2 operation that returns a data payload in addition to billable metrics.

public R2Result(T Data, R2Result Metrics)

Parameters

Data T

The data payload returned by the operation.

Metrics R2Result

The billable metrics for the operation.

Properties

Data

The data payload returned by the operation.

public T Data { get; init; }

Property Value

T

Metrics

The billable metrics for the operation.

public R2Result Metrics { get; init; }

Property Value

R2Result