Struct KeyringReadResult
- Namespace
- Kuestenlogik.Bowire.Keyring
- Assembly
- Kuestenlogik.Bowire.Keyring.dll
Outcome of a single Read(KeyringReference).
public readonly struct KeyringReadResult : IEquatable<KeyringReadResult>
- Implements
- Inherited Members
Constructors
KeyringReadResult(KeyringReadStatus, string?, string?)
Outcome of a single Read(KeyringReference).
public KeyringReadResult(KeyringReadStatus Status, string? Value, string? Error)
Parameters
StatusKeyringReadStatusValuestringErrorstring
Properties
Error
public string? Error { get; init; }
Property Value
Status
public KeyringReadStatus Status { get; init; }
Property Value
Value
public string? Value { get; init; }
Property Value
Methods
Deconstruct(out KeyringReadStatus, out string?, out string?)
public void Deconstruct(out KeyringReadStatus Status, out string? Value, out string? Error)
Parameters
StatusKeyringReadStatusValuestringErrorstring
Equals(KeyringReadResult)
public bool Equals(KeyringReadResult other)
Parameters
otherKeyringReadResult
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
Failed(string)
The store errored (tool missing, access denied, locked).
public static KeyringReadResult Failed(string error)
Parameters
errorstring
Returns
Found(string)
The secret was found.
public static KeyringReadResult Found(string value)
Parameters
valuestring
Returns
GetHashCode()
public override int GetHashCode()
Returns
NotFound()
No entry matched the reference.
public static KeyringReadResult NotFound()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(KeyringReadResult, KeyringReadResult)
public static bool operator ==(KeyringReadResult left, KeyringReadResult right)
Parameters
leftKeyringReadResultrightKeyringReadResult
Returns
operator !=(KeyringReadResult, KeyringReadResult)
public static bool operator !=(KeyringReadResult left, KeyringReadResult right)
Parameters
leftKeyringReadResultrightKeyringReadResult