We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parse_as
e.g.
let input = "@reply-parent-msg-id=test_msg_id PRIVMSG #test :usage: !hello <world>\r\n"; let pm = parse_as::<Privmsg>(input).unwrap();
it'll give an error like: IncorrectMessageType { expected: "Privmsg", got: "Privmsg" }
IncorrectMessageType { expected: "Privmsg", got: "Privmsg" }
when its actually a bad parse ("missing the 'prefix' -- which it should handle. but thats another issue)
The text was updated successfully, but these errors were encountered:
parse_as() would need to return a Result<T, T::Err> for this to happen
parse_as()
Result<T, T::Err>
currently it just returns an Option<T>
Option<T>
Sorry, something went wrong.
No branches or pull requests
e.g.
it'll give an error like:
IncorrectMessageType { expected: "Privmsg", got: "Privmsg" }
when its actually a bad parse ("missing the 'prefix' -- which it should handle. but thats another issue)
The text was updated successfully, but these errors were encountered: