Skip to content

Commit

Permalink
Update doc code examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-pease authored and tluijken committed Aug 22, 2024
1 parent 7a6ceb2 commit 06fcac0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions stellar_rust_sdk/src/horizon_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
///
Expand Down
4 changes: 2 additions & 2 deletions stellar_rust_sdk/src/transactions/all_transactions_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 06fcac0

Please sign in to comment.