Skip to content

Commit

Permalink
_embedded to embedded
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonardTibben committed Mar 4, 2024
1 parent 4dd53f4 commit 207423a
Show file tree
Hide file tree
Showing 5 changed files with 98 additions and 95 deletions.
3 changes: 2 additions & 1 deletion src/accounts/accounts_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ pub struct AccountsResponse {
/// Navigational links related to the response.
_links: AccountsResponseLinks,
/// The embedded object containing the actual account records.
_embedded: Embedded,
#[serde(rename = "_embedded")]
embedded: Embedded,
}

impl Response for AccountsResponse {
Expand Down
3 changes: 2 additions & 1 deletion src/assets/all_assets_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ pub struct AllAssetsResponse {
/// An `Embedded` struct that contains the actual list of asset records. Each
/// record in this list provides detailed information about an individual asset, including
/// its type, issuer, and various statistics related to its distribution and usage.
_embedded: Embedded,
#[serde(rename = "_embedded")]
embedded: Embedded,
}

impl Response for AllAssetsResponse {
Expand Down
10 changes: 5 additions & 5 deletions src/effects/effects_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::models::Response;

/// Represents the navigational links in a effect response from the Stellar Horizon API.
///
/// This struct includes links such as the self-link (current page), next, and previous,
/// This struct includes links such as the self-link (current page), next, and previous,
/// providing quick navigation across different pages of the effect response.
///
#[derive(Debug, Deserialize, Clone, Getters)]
Expand All @@ -29,12 +29,12 @@ pub struct SelfLink {
/// A `String` representing the hyperlink reference to the current resource or query.
href: String,
/// Optionally indicates if the link is templated
templated: Option<bool>
templated: Option<bool>,
}

/// Represents the navigational links belonging to an effect from the Stellar Horizon API.
///
/// This struct includes links such as the operation (current effect), succeeds, and precedes,
/// This struct includes links such as the operation (current effect), succeeds, and precedes,
/// providing quick navigation across operational sequence belonging to the effect.
///
#[derive(Debug, Deserialize, Clone, Getters)]
Expand Down Expand Up @@ -88,7 +88,6 @@ pub struct Embedded {
records: Vec<Record>,
}


/// Represents the response to a request for listing all effects from the Stellar Horizon API.
///
/// This struct contains the overall structure of the response for querying all effects. It includes
Expand All @@ -99,7 +98,8 @@ pub struct EffectsResponse {
/// Navigational links for the current, next, and previous pages of the response.
_links: EffectsResponseLink,
/// Contains the actual list of effect records in the `records` field.
_embedded: Embedded,
#[serde(rename = "_embedded")]
embedded: Embedded,
}

impl Response for EffectsResponse {
Expand Down
Loading

0 comments on commit 207423a

Please sign in to comment.