pub struct SignedStatement {
pub payload: String,
pub signatures: Vec<Signature>,
}Expand description
A statement as it is stored and carried.
JSON schema
{
"description": "A statement as it is stored and carried.",
"type": "object",
"required": [
"payload",
"signatures"
],
"properties": {
"payload": {
"description": "Base64 of the payload bytes.",
"type": "string"
},
"signatures": {
"description": "Signatures over the payload bytes.",
"type": "array",
"items": {
"$ref": "#/components/schemas/Signature"
}
}
},
"additionalProperties": false
}Fields§
§payload: StringBase64 of the payload bytes.
signatures: Vec<Signature>Signatures over the payload bytes.
Implementations§
Source§impl SignedStatement
impl SignedStatement
pub fn builder() -> SignedStatement
Trait Implementations§
Source§impl Clone for SignedStatement
impl Clone for SignedStatement
Source§impl Debug for SignedStatement
impl Debug for SignedStatement
Source§impl<'de> Deserialize<'de> for SignedStatement
impl<'de> Deserialize<'de> for SignedStatement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&SignedStatement> for SignedStatement
impl From<&SignedStatement> for SignedStatement
Source§fn from(value: &SignedStatement) -> Self
fn from(value: &SignedStatement) -> Self
Converts to this type from the input type.
Source§impl From<SignedStatement> for SignedStatement
impl From<SignedStatement> for SignedStatement
Source§fn from(value: SignedStatement) -> Self
fn from(value: SignedStatement) -> Self
Converts to this type from the input type.
Source§impl Serialize for SignedStatement
impl Serialize for SignedStatement
Source§impl TryFrom<SignedStatement> for SignedStatement
impl TryFrom<SignedStatement> for SignedStatement
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: SignedStatement) -> Result<Self, ConversionError>
fn try_from(value: SignedStatement) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Forget for SignedStatement
impl Freeze for SignedStatement
impl Move for SignedStatement
impl RefUnwindSafe for SignedStatement
impl Send for SignedStatement
impl Sync for SignedStatement
impl Unpin for SignedStatement
impl UnsafeUnpin for SignedStatement
impl UnwindSafe for SignedStatement
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more