Struct PersonGeneration
Enum that controls the generation of people.
[JsonConverter(typeof(PersonGenerationConverter))]
public readonly record struct PersonGeneration : IEquatable<PersonGeneration>
- Implements
- Inherited Members
Properties
AllValues
public static IReadOnlyList<PersonGeneration> AllValues { get; }
Property Value
AllowAdult
Generate images of adults, but not children.
public static PersonGeneration AllowAdult { get; }
Property Value
AllowAll
Generate images that include adults and children.
public static PersonGeneration AllowAll { get; }
Property Value
DontAllow
Block generation of images of people.
public static PersonGeneration DontAllow { get; }
Property Value
Value
public string Value { get; }
Property Value
Methods
Equals(PersonGeneration)
public bool Equals(PersonGeneration other)
Parameters
otherPersonGeneration
Returns
FromString(string)
public static PersonGeneration FromString(string value)
Parameters
valuestring
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
implicit operator PersonGeneration(string)
public static implicit operator PersonGeneration(string value)
Parameters
valuestring