Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/client/request_options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub struct ReadEventsRequestOptions<'a> {
}

/// Options for observing events from the database
#[derive(Debug, Clone, Serialize)]
#[derive(Debug, Default, Clone, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct ObserveEventsRequestOptions<'a> {
/// Start reading events from this start event
Expand Down
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ pub mod client;
pub mod container;
pub mod error;
pub mod event;

pub use client::{Client, Precondition, request_options};
pub use event::{Event, EventCandidate, ManagementEvent, TraceInfo};
2 changes: 1 addition & 1 deletion tests/essentials.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use eventsourcingdb::{client::Client, container::Container};
use eventsourcingdb::{Client, container::Container};

#[tokio::test]
async fn ping() {
Expand Down
4 changes: 2 additions & 2 deletions tests/read_events.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
mod utils;

use eventsourcingdb::{
client::request_options::{
container::Container,
request_options::{
EventMissingStrategy, FromLatestEventOptions, Ordering, ReadEventsRequestOptions,
},
container::Container,
};
use futures::TryStreamExt;
use serde_json::json;
Expand Down
2 changes: 1 addition & 1 deletion tests/utils/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use chrono::{TimeDelta, Utc};
use eventsourcingdb::event::{Event, EventCandidate};
use eventsourcingdb::{Event, EventCandidate};
use serde_json::{Value, json};

pub fn create_test_eventcandidate(
Expand Down
6 changes: 1 addition & 5 deletions tests/write_events.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
mod utils;

use eventsourcingdb::{
client::Precondition,
container::Container,
event::{EventCandidate, TraceInfo},
};
use eventsourcingdb::{EventCandidate, Precondition, TraceInfo, container::Container};
use serde_json::json;
use utils::{
assert_event_match_eventcandidate, assert_events_match_eventcandidates,
Expand Down