#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
#[allow(missing_docs)]
pub struct DigestOutput {
#[allow(missing_docs)]
pub digest: ::std::option::Option<::aws_smithy_types::Blob>,
}
impl DigestOutput {
#[allow(missing_docs)]
pub fn digest(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
&self.digest
}
}
impl DigestOutput {
pub fn builder(
) -> crate::deps::aws_cryptography_primitives::operation::digest::builders::DigestOutputBuilder
{
crate::deps::aws_cryptography_primitives::operation::digest::builders::DigestOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(
::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug,
)]
pub struct DigestOutputBuilder {
pub(crate) digest: ::std::option::Option<::aws_smithy_types::Blob>,
}
impl DigestOutputBuilder {
#[allow(missing_docs)]
pub fn digest(mut self, input: impl ::std::convert::Into<::aws_smithy_types::Blob>) -> Self {
self.digest = ::std::option::Option::Some(input.into());
self
}
#[allow(missing_docs)]
pub fn set_digest(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
self.digest = input;
self
}
#[allow(missing_docs)]
pub fn get_digest(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
&self.digest
}
pub fn build(
self,
) -> ::std::result::Result<
crate::deps::aws_cryptography_primitives::operation::digest::DigestOutput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(
crate::deps::aws_cryptography_primitives::operation::digest::DigestOutput {
digest: self.digest,
},
)
}
}