aws_sdk_qldb/client/
get_digest.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`GetDigest`](crate::operation::get_digest::builders::GetDigestFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`name(impl Into<String>)`](crate::operation::get_digest::builders::GetDigestFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::get_digest::builders::GetDigestFluentBuilder::set_name):<br>required: **true**<br><p>The name of the ledger.</p><br>
7    /// - On success, responds with [`GetDigestOutput`](crate::operation::get_digest::GetDigestOutput) with field(s):
8    ///   - [`digest(Blob)`](crate::operation::get_digest::GetDigestOutput::digest): <p>The 256-bit hash value representing the digest returned by a <code>GetDigest</code> request.</p>
9    ///   - [`digest_tip_address(Option<ValueHolder>)`](crate::operation::get_digest::GetDigestOutput::digest_tip_address): <p>The latest block location covered by the digest that you requested. An address is an Amazon Ion structure that has two fields: <code>strandId</code> and <code>sequenceNo</code>.</p>
10    /// - On failure, responds with [`SdkError<GetDigestError>`](crate::operation::get_digest::GetDigestError)
11    pub fn get_digest(&self) -> crate::operation::get_digest::builders::GetDigestFluentBuilder {
12        crate::operation::get_digest::builders::GetDigestFluentBuilder::new(self.handle.clone())
13    }
14}