namespace NexusShell.Services.Policy;

public sealed class NexusRolePolicy
{
    public required NexusRole Role { get; init; }
    public required NexusPolicy Policy { get; init; }
    public required string SourcePath { get; init; }

    public static NexusRolePolicy FromPolicy(NexusPolicy policy, string sourcePath) =>
        new()
        {
            Role = policy.ParsedRole,
            Policy = policy,
            SourcePath = sourcePath,
        };
}
