Currently, if a user wants to sign a JWS, they have to manually implement the FromRawPayload and IntoPayload trait on their own type.
jose should provide a set of default payload implementations that allow using a String, Vec<u8>, and a JSON Payload that serializes a T into JSON. Each of these types should also be configurable to optionally use detached content.
Currently, if a user wants to sign a JWS, they have to manually implement the
FromRawPayloadandIntoPayloadtrait on their own type.joseshould provide a set of default payload implementations that allow using aString,Vec<u8>, and a JSON Payload that serializes aTinto JSON. Each of these types should also be configurable to optionally use detached content.