namespace StellaOps.Scanner.WebService.Domain;

public readonly record struct ScanId(string Value)
{
    public override string ToString() => Value;

    public static bool TryParse(string? value, out ScanId scanId)
    {
        if (!string.IsNullOrWhiteSpace(value))
        {
            scanId = new ScanId(value.Trim());
            return true;
        }

        scanId = default;
        return false;
    }
}
