using ERI_Client.V1; // ReSharper disable InconsistentNaming namespace AIStudio.Settings.DataModel; /// /// An external data source, accessed via an ERI server, cf. https://github.com/MindWorkAI/ERI. /// public readonly record struct DataSourceERI_V1 : IERIDataSource { public DataSourceERI_V1() { } /// public uint Num { get; init; } /// public string Id { get; init; } = Guid.Empty.ToString(); /// public string Name { get; init; } = string.Empty; /// public DataSourceType Type { get; init; } = DataSourceType.NONE; /// /// The hostname of the ERI server. /// public string Hostname { get; init; } = string.Empty; /// /// The port of the ERI server. /// public int Port { get; init; } /// /// The authentication method to use. /// public AuthMethod AuthMethod { get; init; } = AuthMethod.NONE; /// /// The username to use for authentication, when the auth. method is USERNAME_PASSWORD. /// public string Username { get; init; } = string.Empty; }