From 06fcac07e5c817f3bbbb3c4fae4bf6df32b44f44 Mon Sep 17 00:00:00 2001 From: Kevin Pease Date: Tue, 20 Aug 2024 10:42:33 +0200 Subject: [PATCH] Update doc code examples --- stellar_rust_sdk/src/horizon_client.rs | 4 ++-- stellar_rust_sdk/src/transactions/all_transactions_request.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/stellar_rust_sdk/src/horizon_client.rs b/stellar_rust_sdk/src/horizon_client.rs index e07ac2b..b1861bb 100644 --- a/stellar_rust_sdk/src/horizon_client.rs +++ b/stellar_rust_sdk/src/horizon_client.rs @@ -1661,7 +1661,7 @@ impl HorizonClient { /// /// ``` /// # use stellar_rs::transactions::prelude::*; - /// # use stellar_rs::models::Request; + /// # use stellar_rs::models::{Request, IncludeFailed}; /// # use stellar_rs::horizon_client::HorizonClient; /// # use stellar_rust_sdk_derive::Pagination; /// # use stellar_rs::Paginatable; @@ -1671,7 +1671,7 @@ impl HorizonClient { /// # let horizon_client = HorizonClient::new(base_url) /// # .expect("Failed to create Horizon Client"); /// let request = AllTransactionsRequest::new() - /// .set_include_failed(true).unwrap(); + /// .set_include_failed(IncludeFailed::True).unwrap(); /// /// let response = horizon_client.get_all_transactions(&request).await; /// diff --git a/stellar_rust_sdk/src/transactions/all_transactions_request.rs b/stellar_rust_sdk/src/transactions/all_transactions_request.rs index c73525c..a2f757d 100644 --- a/stellar_rust_sdk/src/transactions/all_transactions_request.rs +++ b/stellar_rust_sdk/src/transactions/all_transactions_request.rs @@ -18,12 +18,12 @@ use crate::Paginatable; /// # Example /// ``` /// use stellar_rs::transactions::all_transactions_request::AllTransactionsRequest; -/// use stellar_rs::models::{Order}; +/// use stellar_rs::models::{Order, IncludeFailed}; /// use stellar_rust_sdk_derive::Pagination; /// use stellar_rs::Paginatable; /// /// let request = AllTransactionsRequest::new() -/// .set_include_failed(true).unwrap() // Optional flag to include failed transactions +/// .set_include_failed(IncludeFailed::True).unwrap() // Optional flag to include failed transactions /// .set_cursor(123).unwrap() // Optional cursor for pagination /// .set_limit(100).unwrap() // Optional limit for response records /// .set_order(Order::Desc); // Optional order of records