Skip to content

Commit

Permalink
fix: review comments, api fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dbcfd committed Feb 16, 2024
1 parent 9b4b736 commit 65bcee6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 0 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,12 @@ publish = false

[dependencies]
anyhow = "1"
#ceramic-event = { git = "https://github.com/ceramicnetwork/rust-ceramic", branch = "main" }
#ceramic-event = { path = "/Users/dbrowning/code/3box/rust-ceramic/event", default-features = false }
ceramic-event = { git = "https://github.com/ceramicnetwork/rust-ceramic", branch = "feat/wasi" }
json-patch = { version = "1.2.0", features = ["diff"] }
reqwest = { version = "0.11.14", features = ["json"], optional = true }
schemars = "0.8.12"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
#ssi = { version = "0.7", features = ["ed25519"] }
url = { version = "2.5.0", optional = true }

[features]
Expand Down
5 changes: 3 additions & 2 deletions src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub struct BlockData<T: Serialize> {
/// Header for block
pub header: BlockHeader,
/// Data for block
//#[serde(skip_serializing_if = "Option::is_none")]
#[serde(skip_serializing_if = "Option::is_none")]
pub data: Option<T>,
/// Signature for block
#[serde(skip_serializing_if = "Option::is_none")]
Expand Down Expand Up @@ -313,7 +313,8 @@ pub struct PageInfo {
/// Whether previous page exists
pub has_previous_page: bool,
/// Cursor for next page
pub end_cursor: Base64UrlString,
#[serde(default)]
pub end_cursor: Option<Base64UrlString>,
/// Cursor for previous page
pub start_cursor: Base64UrlString,
}
Expand Down

0 comments on commit 65bcee6

Please sign in to comment.