nominal_api/conjure/objects/ingest/api/
sign_part_response.rs1#[derive(
2 Debug,
3 Clone,
4 conjure_object::serde::Serialize,
5 conjure_object::serde::Deserialize,
6 PartialEq,
7 Eq,
8 PartialOrd,
9 Ord,
10 Hash
11)]
12#[serde(crate = "conjure_object::serde")]
13#[conjure_object::private::staged_builder::staged_builder]
14#[builder(crate = conjure_object::private::staged_builder, update, inline)]
15pub struct SignPartResponse {
16 #[builder(into)]
17 #[serde(rename = "url")]
18 url: String,
19 #[builder(default, map(key(type = String, into), value(type = String, into)))]
20 #[serde(
21 rename = "headers",
22 skip_serializing_if = "std::collections::BTreeMap::is_empty",
23 default
24 )]
25 headers: std::collections::BTreeMap<String, String>,
26}
27impl SignPartResponse {
28 #[inline]
30 pub fn new(url: impl Into<String>) -> Self {
31 Self::builder().url(url).build()
32 }
33 #[inline]
34 pub fn url(&self) -> &str {
35 &*self.url
36 }
37 #[inline]
38 pub fn headers(&self) -> &std::collections::BTreeMap<String, String> {
39 &self.headers
40 }
41}