You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 16, 2023. It is now read-only.
/// Base64-encoded SHA1withRSA signature of the Message, MessageId, Subject (if present), Type, Timestamp, and TopicArn values.
140
-
pubsignature:String,
140
+
pubsignature:Option<String>,
141
141
142
142
/// The URL to the certificate that was used to sign the message.
143
143
#[serde(rename = "SigningCertURL")]
144
-
pubsigning_cert_url:String,
144
+
pubsigning_cert_url:Option<String>,
145
145
146
146
/// A URL that you can use to unsubscribe the endpoint from this topic. If you visit this URL, Amazon SNS unsubscribes the endpoint and stops sending notifications to this endpoint.
147
147
#[serde(rename = "UnsubscribeURL")]
@@ -239,4 +239,26 @@ mod test {
239
239
let reparsed:SnsEventObj<CustStruct> = serde_json::from_slice(output.as_bytes()).unwrap();
240
240
assert_eq!(parsed, reparsed);
241
241
}
242
+
243
+
#[test]
244
+
#[cfg(feature = "sns")]
245
+
fnmy_example_sns_obj_unsigned_event(){
246
+
let data = include_bytes!("../generated/fixtures/example-sns-event-obj-unsigned.json");
247
+
248
+
#[derive(Debug,Serialize,Deserialize,PartialEq)]
249
+
structCustStruct{
250
+
foo:String,
251
+
bar:i32,
252
+
}
253
+
254
+
let parsed:SnsEventObj<CustStruct> = serde_json::from_slice(data).unwrap();
0 commit comments