Class ImageMetaResource
- Namespace
- CivitaiSharp.Core.Models
- Assembly
- CivitaiSharp.Core.dll
A resource reference in image generation metadata (different from CivitaiResource). This represents resources embedded in the generation workflow, typically from A1111.
public sealed record ImageMetaResource : IEquatable<ImageMetaResource>
- Inheritance
-
ImageMetaResource
- Implements
- Inherited Members
Constructors
ImageMetaResource(string?, string?, string?, decimal?)
A resource reference in image generation metadata (different from CivitaiResource). This represents resources embedded in the generation workflow, typically from A1111.
public ImageMetaResource(string? Name, string? Type, string? Hash, decimal? Weight)
Parameters
NamestringThe name of the resource used in generation. Maps to JSON property "name".
TypestringThe type of resource (e.g., "model", "lora", "embeddings"). Maps to JSON property "type".
HashstringThe hash value identifying the resource. Maps to JSON property "hash".
Weightdecimal?The weight or strength at which this resource was applied during generation. Maps to JSON property "weight".
Properties
Hash
The hash value identifying the resource. Maps to JSON property "hash".
[JsonPropertyName("hash")]
public string? Hash { get; init; }
Property Value
Name
The name of the resource used in generation. Maps to JSON property "name".
[JsonPropertyName("name")]
public string? Name { get; init; }
Property Value
Type
The type of resource (e.g., "model", "lora", "embeddings"). Maps to JSON property "type".
[JsonPropertyName("type")]
public string? Type { get; init; }
Property Value
Weight
The weight or strength at which this resource was applied during generation. Maps to JSON property "weight".
[JsonPropertyName("weight")]
public decimal? Weight { get; init; }