fmt
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
This commit is contained in:
parent
ee7d5f779a
commit
94c3f12c57
|
|
@ -1,7 +1,6 @@
|
||||||
use super::{
|
use super::{
|
||||||
AttributesIntoIteratorV03, AttributesIntoIteratorV10, AttributesV03, AttributesV10,
|
types::*, AttributesIntoIteratorV03, AttributesIntoIteratorV10, AttributesV03, AttributesV10,
|
||||||
ExtensionValue, SpecVersion,
|
ExtensionValue, SpecVersion,
|
||||||
types::*
|
|
||||||
};
|
};
|
||||||
use chrono::{DateTime, Utc};
|
use chrono::{DateTime, Utc};
|
||||||
use serde::Serializer;
|
use serde::Serializer;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
use snafu::Snafu;
|
|
||||||
use super::Event;
|
|
||||||
use super::types;
|
use super::types;
|
||||||
|
use super::Event;
|
||||||
|
use snafu::Snafu;
|
||||||
|
|
||||||
/// Trait to implement a builder for [`Event`]:
|
/// Trait to implement a builder for [`Event`]:
|
||||||
/// ```
|
/// ```
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
pub use self::uri::Uri;
|
|
||||||
pub use self::uri::ParseUriError;
|
pub use self::uri::ParseUriError;
|
||||||
pub use self::uri::TryIntoUri;
|
pub use self::uri::TryIntoUri;
|
||||||
|
pub use self::uri::Uri;
|
||||||
|
|
||||||
pub use urireference::UriReference;
|
pub use urireference::UriReference;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
use crate::event::attributes::{default_hostname, AttributeValue, AttributesConverter};
|
use crate::event::attributes::{default_hostname, AttributeValue, AttributesConverter};
|
||||||
|
use crate::event::types::*;
|
||||||
use crate::event::{AttributesReader, AttributesV10, AttributesWriter, SpecVersion};
|
use crate::event::{AttributesReader, AttributesV10, AttributesWriter, SpecVersion};
|
||||||
use crate::message::{BinarySerializer, MessageAttributeValue};
|
use crate::message::{BinarySerializer, MessageAttributeValue};
|
||||||
use crate::event::types::*;
|
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
|
|
||||||
pub(crate) const ATTRIBUTE_NAMES: [&str; 8] = [
|
pub(crate) const ATTRIBUTE_NAMES: [&str; 8] = [
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,7 @@
|
||||||
use super::Attributes as AttributesV03;
|
use super::Attributes as AttributesV03;
|
||||||
use crate::event::{
|
|
||||||
Attributes, Data, Event, EventBuilderError, ExtensionValue
|
|
||||||
};
|
|
||||||
use crate::message::MessageAttributeValue;
|
|
||||||
use crate::event::types::*;
|
use crate::event::types::*;
|
||||||
|
use crate::event::{Attributes, Data, Event, EventBuilderError, ExtensionValue};
|
||||||
|
use crate::message::MessageAttributeValue;
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::convert::TryInto;
|
use std::convert::TryInto;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
use super::Attributes;
|
use super::Attributes;
|
||||||
use crate::event::data::is_json_content_type;
|
use crate::event::data::is_json_content_type;
|
||||||
use crate::event::{Data, ExtensionValue};
|
|
||||||
use crate::event::types::*;
|
use crate::event::types::*;
|
||||||
|
use crate::event::{Data, ExtensionValue};
|
||||||
use serde::de::IntoDeserializer;
|
use serde::de::IntoDeserializer;
|
||||||
use serde::ser::SerializeMap;
|
use serde::ser::SerializeMap;
|
||||||
use serde::{Deserialize, Serializer};
|
use serde::{Deserialize, Serializer};
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
use crate::event::attributes::{default_hostname, AttributeValue, AttributesConverter};
|
use crate::event::attributes::{default_hostname, AttributeValue, AttributesConverter};
|
||||||
|
use crate::event::types::*;
|
||||||
use crate::event::{AttributesReader, AttributesV03, AttributesWriter, SpecVersion, UriReference};
|
use crate::event::{AttributesReader, AttributesV03, AttributesWriter, SpecVersion, UriReference};
|
||||||
use crate::message::{BinarySerializer, MessageAttributeValue};
|
use crate::message::{BinarySerializer, MessageAttributeValue};
|
||||||
use crate::event::types::*;
|
|
||||||
use core::fmt::Debug;
|
use core::fmt::Debug;
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
use super::Attributes as AttributesV10;
|
use super::Attributes as AttributesV10;
|
||||||
|
use crate::event::types::*;
|
||||||
use crate::event::{
|
use crate::event::{
|
||||||
Attributes, Data, Event, EventBuilderError, ExtensionValue, TryIntoTime, TryIntoUri,
|
Attributes, Data, Event, EventBuilderError, ExtensionValue, TryIntoTime, TryIntoUri,
|
||||||
UriReference,
|
UriReference,
|
||||||
};
|
};
|
||||||
use crate::message::MessageAttributeValue;
|
use crate::message::MessageAttributeValue;
|
||||||
use crate::event::types::*;
|
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::convert::TryInto;
|
use std::convert::TryInto;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
use super::Attributes;
|
use super::Attributes;
|
||||||
use crate::event::data::is_json_content_type;
|
use crate::event::data::is_json_content_type;
|
||||||
use crate::event::{Data, ExtensionValue};
|
|
||||||
use crate::event::types::*;
|
use crate::event::types::*;
|
||||||
|
use crate::event::{Data, ExtensionValue};
|
||||||
use serde::de::IntoDeserializer;
|
use serde::de::IntoDeserializer;
|
||||||
use serde::ser::SerializeMap;
|
use serde::ser::SerializeMap;
|
||||||
use serde::{Deserialize, Serializer};
|
use serde::{Deserialize, Serializer};
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
use snafu::Snafu;
|
|
||||||
use crate::event::types;
|
use crate::event::types;
|
||||||
|
use snafu::Snafu;
|
||||||
|
|
||||||
/// Represents an error during serialization/deserialization process
|
/// Represents an error during serialization/deserialization process
|
||||||
#[derive(Debug, Snafu)]
|
#[derive(Debug, Snafu)]
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
|
use crate::event::types::*;
|
||||||
use crate::event::ExtensionValue;
|
use crate::event::ExtensionValue;
|
||||||
use std::convert::TryInto;
|
use std::convert::TryInto;
|
||||||
use std::fmt;
|
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).
|
/// 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)]
|
#[derive(PartialEq, Eq, Debug, Clone)]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue