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
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ qa: analyze test
analyze:
@cargo clippy
@cargo fmt --check
@cargo doc --all-features --no-deps --document-private-items

test:
@cargo test
Expand Down
2 changes: 1 addition & 1 deletion src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ pub use event_types::management_event::ManagementEvent;
pub use trace_info::TraceInfo;

#[cfg(feature = "cloudevents")]
use crate::error::EventError;
pub use crate::error::EventError;
2 changes: 2 additions & 0 deletions src/event/event_types/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ use serde::{Deserialize, Serialize};
use serde_json::Value;

use crate::event::{EventCandidate, trace_info::TraceInfo};
#[cfg(feature = "cloudevents")]
use cloudevents::EventBuilder;

/// Represents an event that has been received from the DB.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
Expand Down
2 changes: 2 additions & 0 deletions src/event/event_types/event_candidate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ use typed_builder::TypedBuilder;

#[cfg(feature = "cloudevents")]
use crate::error::EventError;
#[cfg(feature = "cloudevents")]
use cloudevents::AttributesReader;

/// Represents an event candidate that can be sent to the DB.
/// This is a simplified version of the [`super::event::Event`] type.
Expand Down
3 changes: 3 additions & 0 deletions src/event/event_types/management_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};
use serde_json::Value;

#[cfg(feature = "cloudevents")]
use cloudevents::EventBuilder;

/// Represents a management event that has been received from the DB.
///
/// For management requests like [`crate::client::Client::ping`] and [`crate::client::Client::verify_api_token`] the DB will send a management event.
Expand Down
3 changes: 3 additions & 0 deletions src/event/trace_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
use serde::{Deserialize, Serialize};

#[cfg(feature = "cloudevents")]
use crate::error::EventError;

/// Represents the trace information of an event.
/// This is used for distributed tracing.
/// It can either be a traceparent or a traceparent and tracestate.
Expand Down