aws_esdk/deps/aws_cryptography_primitives/operation/digest/
_digest_output.rs1#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6#[allow(missing_docs)]
7pub struct DigestOutput {
8 #[allow(missing_docs)]
9 pub digest: ::std::option::Option<::aws_smithy_types::Blob>,
10}
11impl DigestOutput {
12 #[allow(missing_docs)]
13 pub fn digest(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
14 &self.digest
15 }
16}
17impl DigestOutput {
18 pub fn builder(
20 ) -> crate::deps::aws_cryptography_primitives::operation::digest::builders::DigestOutputBuilder
21 {
22 crate::deps::aws_cryptography_primitives::operation::digest::builders::DigestOutputBuilder::default()
23 }
24}
25
26#[non_exhaustive]
28#[derive(
29 ::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug,
30)]
31pub struct DigestOutputBuilder {
32 pub(crate) digest: ::std::option::Option<::aws_smithy_types::Blob>,
33}
34impl DigestOutputBuilder {
35 #[allow(missing_docs)]
36 pub fn digest(mut self, input: impl ::std::convert::Into<::aws_smithy_types::Blob>) -> Self {
37 self.digest = ::std::option::Option::Some(input.into());
38 self
39 }
40 #[allow(missing_docs)]
41 pub fn set_digest(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
42 self.digest = input;
43 self
44 }
45 #[allow(missing_docs)]
46 pub fn get_digest(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
47 &self.digest
48 }
49 pub fn build(
51 self,
52 ) -> ::std::result::Result<
53 crate::deps::aws_cryptography_primitives::operation::digest::DigestOutput,
54 ::aws_smithy_types::error::operation::BuildError,
55 > {
56 ::std::result::Result::Ok(
57 crate::deps::aws_cryptography_primitives::operation::digest::DigestOutput {
58 digest: self.digest,
59 },
60 )
61 }
62}