Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
This commit is contained in:
slinkydeveloper 2021-04-29 14:52:52 +02:00 committed by Francesco Guardiani
parent ee7d5f779a
commit 94c3f12c57
11 changed files with 13 additions and 16 deletions

View File

@ -1,7 +1,6 @@
use super::{
AttributesIntoIteratorV03, AttributesIntoIteratorV10, AttributesV03, AttributesV10,
types::*, AttributesIntoIteratorV03, AttributesIntoIteratorV10, AttributesV03, AttributesV10,
ExtensionValue, SpecVersion,
types::*
};
use chrono::{DateTime, Utc};
use serde::Serializer;

View File

@ -1,6 +1,6 @@
use snafu::Snafu;
use super::Event;
use super::types;
use super::Event;
use snafu::Snafu;
/// Trait to implement a builder for [`Event`]:
/// ```

View File

@ -1,6 +1,6 @@
pub use self::uri::Uri;
pub use self::uri::ParseUriError;
pub use self::uri::TryIntoUri;
pub use self::uri::Uri;
pub use urireference::UriReference;

View File

@ -1,7 +1,7 @@
use crate::event::attributes::{default_hostname, AttributeValue, AttributesConverter};
use crate::event::types::*;
use crate::event::{AttributesReader, AttributesV10, AttributesWriter, SpecVersion};
use crate::message::{BinarySerializer, MessageAttributeValue};
use crate::event::types::*;
use uuid::Uuid;
pub(crate) const ATTRIBUTE_NAMES: [&str; 8] = [

View File

@ -1,9 +1,7 @@
use super::Attributes as AttributesV03;
use crate::event::{
Attributes, Data, Event, EventBuilderError, ExtensionValue
};
use crate::message::MessageAttributeValue;
use crate::event::types::*;
use crate::event::{Attributes, Data, Event, EventBuilderError, ExtensionValue};
use crate::message::MessageAttributeValue;
use std::collections::HashMap;
use std::convert::TryInto;

View File

@ -1,7 +1,7 @@
use super::Attributes;
use crate::event::data::is_json_content_type;
use crate::event::{Data, ExtensionValue};
use crate::event::types::*;
use crate::event::{Data, ExtensionValue};
use serde::de::IntoDeserializer;
use serde::ser::SerializeMap;
use serde::{Deserialize, Serializer};

View File

@ -1,7 +1,7 @@
use crate::event::attributes::{default_hostname, AttributeValue, AttributesConverter};
use crate::event::types::*;
use crate::event::{AttributesReader, AttributesV03, AttributesWriter, SpecVersion, UriReference};
use crate::message::{BinarySerializer, MessageAttributeValue};
use crate::event::types::*;
use core::fmt::Debug;
use uuid::Uuid;

View File

@ -1,10 +1,10 @@
use super::Attributes as AttributesV10;
use crate::event::types::*;
use crate::event::{
Attributes, Data, Event, EventBuilderError, ExtensionValue, TryIntoTime, TryIntoUri,
UriReference,
};
use crate::message::MessageAttributeValue;
use crate::event::types::*;
use std::collections::HashMap;
use std::convert::TryInto;

View File

@ -1,7 +1,7 @@
use super::Attributes;
use crate::event::data::is_json_content_type;
use crate::event::{Data, ExtensionValue};
use crate::event::types::*;
use crate::event::{Data, ExtensionValue};
use serde::de::IntoDeserializer;
use serde::ser::SerializeMap;
use serde::{Deserialize, Serializer};

View File

@ -1,5 +1,5 @@
use snafu::Snafu;
use crate::event::types;
use snafu::Snafu;
/// Represents an error during serialization/deserialization process
#[derive(Debug, Snafu)]

View File

@ -1,7 +1,7 @@
use crate::event::types::*;
use crate::event::ExtensionValue;
use std::convert::TryInto;
use std::fmt;
use crate::event::types::*;
/// Union type representing a [CloudEvent context attribute type](https://github.com/cloudevents/spec/blob/v1.0/spec.md#type-system).
#[derive(PartialEq, Eq, Debug, Clone)]