pub trait IntoRowWithContext<'a, A: 'a>: Sized {
type Serializer: Serializer<'a, Self>;
// Required method
fn get_serializer(accessor: A) -> Self::Serializer;
}
Available on crate feature
row
only.Expand description
Produce a Serializer
to convert values of this type, which
requires a context value, into rows of output.
This can be derived via the
IntoRowWithPersianRug
derive macro for the case of a persian-rug
type.
Required Associated Types§
type Serializer: Serializer<'a, Self>
Required Methods§
Sourcefn get_serializer(accessor: A) -> Self::Serializer
fn get_serializer(accessor: A) -> Self::Serializer
accessor
is some context value
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl<'a, A, C, T> IntoRowWithContext<'a, A> for Proxy<T>where
A: Accessor<Context = C> + 'a,
T: IntoRowWithContext<'a, A> + Contextual<Context = C>,
C: Context + Owner<T>,
impl<'a, A, C, T> IntoRowWithContext<'a, A> for Proxy<T>where
A: Accessor<Context = C> + 'a,
T: IntoRowWithContext<'a, A> + Contextual<Context = C>,
C: Context + Owner<T>,
Source§type Serializer = ProxySerializer<A>
type Serializer = ProxySerializer<A>
Available on crate feature
row
only.Source§fn get_serializer(access: A) -> Self::Serializer
fn get_serializer(access: A) -> Self::Serializer
Available on crate feature
row
only.