use serde::{Deserialize, Serialize};
use std::{any::Any, fmt};
#[derive(Default)]
pub(crate) struct ConnectorData {
pub(crate) data: Option<Box<dyn Any + Send + Sync + 'static>>,
}
impl PartialEq for ConnectorData {
fn eq(&self, _other: &Self) -> bool {
true
}
}
impl fmt::Debug for ConnectorData {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.write_str("<ConnectorData>")
}
}
impl Serialize for ConnectorData {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
S: serde::Serializer,
{
serializer.serialize_unit()
}
}
impl<'de> Deserialize<'de> for ConnectorData {
fn deserialize<D>(_deserializer: D) -> Result<Self, D::Error>
where
D: serde::Deserializer<'de>,
{
Ok(Default::default())
}
}