namespace HopFrame.Api.Models;
///
/// Useful for endpoints that only return a single int or string
///
/// The value of the result
/// The type of the result
public struct SingleValueResult(TValue value) {
public TValue Value { get; set; } = value;
public static implicit operator TValue(SingleValueResult v) {
return v.Value;
}
public static implicit operator SingleValueResult(TValue v) {
return new SingleValueResult(v);
}
}