Skip to content

Commit

Permalink
Rename Links structs
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-pease authored and LeonardTibben committed Jun 14, 2024
1 parent b992350 commit 9b28592
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/claimable_balances/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub struct AllClaimableBalancesResponse {
pub struct ClaimableBalance {
/// Links to related resources in the Horizon API response.
#[serde(rename = "_links")]
pub links: Links,
pub links: ClaimableBalanceLinks,

/// The unique identifier of the claimable balance.
pub id: String,
Expand Down Expand Up @@ -62,7 +62,7 @@ pub struct ClaimableBalance {
/// Contains navigational links related to the single claimable balance response.
#[derive(Default, Debug, Clone, Serialize, Deserialize, Getters)]
#[serde(rename_all = "camelCase")]
pub struct Links {
pub struct ClaimableBalanceLinks {
/// The link to the current claimable balance resource.
#[serde(rename = "self")]
pub self_field: Link,
Expand Down
4 changes: 2 additions & 2 deletions stellar_rust_sdk/src/offers/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pub struct PriceR {
/// and the offer maker.
///
#[derive(Debug, Deserialize, Serialize, Clone, Getters)]
pub struct Links {
pub struct OfferResponseLinks {
/// The link to the offer itself.
#[serde(rename = "self")]
self_link: Link,
Expand All @@ -78,7 +78,7 @@ pub struct Links {
pub struct OfferResponse {
/// Navigational links related to the offer.
#[serde(rename = "_links")]
links: Links,
links: OfferResponseLinks,
/// The unique identifier for the offer.
id: String,
/// A token used for paging through results.
Expand Down

0 comments on commit 9b28592

Please sign in to comment.