mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-07-21 22:26:27 +00:00
16 lines
452 B
C#
16 lines
452 B
C#
|
|
namespace AIStudio.Tools.Rust;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Typed result of a global shortcut registration attempt.
|
||
|
|
/// </summary>
|
||
|
|
public sealed record ShortcutRegistrationResult(
|
||
|
|
bool Success,
|
||
|
|
string ErrorMessage,
|
||
|
|
ShortcutBackend Backend,
|
||
|
|
bool Cancelled,
|
||
|
|
string EffectiveDisplayName)
|
||
|
|
{
|
||
|
|
public static ShortcutRegistrationResult Failed(string errorMessage) =>
|
||
|
|
new(false, errorMessage, ShortcutBackend.NONE, false, string.Empty);
|
||
|
|
}
|