Trait django_query::row::IntoRowWithContext
source · [−]pub trait IntoRowWithContext<'a, A: 'a>: Sized {
type Serializer: Serializer<'a, Self>;
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
fn get_serializer(accessor: A) -> Self::Serializer
fn get_serializer(accessor: A) -> Self::Serializer
accessor
is some context value
Implementations on Foreign Types
sourceimpl<'s, T, A> IntoRowWithContext<'s, A> for Option<T> where
T: IntoRowWithContext<'s, A>,
A: 's + Clone,
impl<'s, T, A> IntoRowWithContext<'s, A> for Option<T> where
T: IntoRowWithContext<'s, A>,
A: 's + Clone,
type Serializer = OptionSerializerWithContext<A>
fn get_serializer(access: A) -> Self::Serializer
sourceimpl<'a, A, C, T> IntoRowWithContext<'a, A> for Proxy<T> where
A: Accessor<Context = C> + 'a,
T: IntoRowWithContext<'a, A>,
C: Context + Owner<T>,
T: Contextual<Context = C>,
impl<'a, A, C, T> IntoRowWithContext<'a, A> for Proxy<T> where
A: Accessor<Context = C> + 'a,
T: IntoRowWithContext<'a, A>,
C: Context + Owner<T>,
T: Contextual<Context = C>,
type Serializer = ProxySerializer<A>
type Serializer = ProxySerializer<A>
Available on crate feature
row
only.sourcefn get_serializer(access: A) -> Self::Serializer
fn get_serializer(access: A) -> Self::Serializer
Available on crate feature
row
only.