nominal_api/conjure/objects/ingest/workflow/api/
presigned_url.rs1#[derive(
2 Debug,
3 Clone,
4 conjure_object::serde::Deserialize,
5 conjure_object::serde::Serialize,
6 PartialEq,
7 Eq,
8 PartialOrd,
9 Ord,
10 Hash,
11 Default
12)]
13#[serde(crate = "conjure_object::serde", transparent)]
14pub struct PresignedUrl(pub String);
15impl std::fmt::Display for PresignedUrl {
16 fn fmt(&self, fmt: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
17 std::fmt::Display::fmt(&self.0, fmt)
18 }
19}
20impl conjure_object::Plain for PresignedUrl {
21 fn fmt(&self, fmt: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22 conjure_object::Plain::fmt(&self.0, fmt)
23 }
24}
25impl conjure_object::FromPlain for PresignedUrl {
26 type Err = <String as conjure_object::FromPlain>::Err;
27 #[inline]
28 fn from_plain(s: &str) -> Result<PresignedUrl, Self::Err> {
29 conjure_object::FromPlain::from_plain(s).map(PresignedUrl)
30 }
31}
32impl std::convert::From<String> for PresignedUrl {
33 #[inline]
34 fn from(v: String) -> Self {
35 PresignedUrl(std::convert::From::from(v))
36 }
37}
38impl std::ops::Deref for PresignedUrl {
39 type Target = String;
40 #[inline]
41 fn deref(&self) -> &String {
42 &self.0
43 }
44}
45impl std::ops::DerefMut for PresignedUrl {
46 #[inline]
47 fn deref_mut(&mut self) -> &mut String {
48 &mut self.0
49 }
50}
51impl std::convert::AsRef<String> for PresignedUrl {
52 #[inline]
53 fn as_ref(&self) -> &String {
54 &self.0
55 }
56}