stopReasonFromString

Parse a wire stop-reason string into a StopReason. Returns null for provider-specific values not in the enum (the raw string is then preserved in CreateMessageResult.stopReason).

@safe @safe
Nullable!StopReason
stopReasonFromString
(
string s
)