namespace FrostFS.SDK.Client; public struct Actions(bool inverted, string[] names) : System.IEquatable { public bool Inverted { get; set; } = inverted; public string[] Names { get; set; } = names; public override readonly bool Equals(object obj) { if (obj == null || obj is not Actions) return false; return Equals((Actions)obj); } public override readonly int GetHashCode() { return Inverted.GetHashCode() ^ string.Join(string.Empty, Names).GetHashCode(); } public static bool operator ==(Actions left, Actions right) { return left.Equals(right); } public static bool operator !=(Actions left, Actions right) { return !(left == right); } public readonly bool Equals(Actions other) { return this.GetHashCode().Equals(other.GetHashCode()); } }