Function elastic::types::document::doc_ser [] [src]

pub fn doc_ser<S, M>(
    state: &mut S,
    field: &'static str,
    M
) -> Result<(), <S as SerializeStruct>::Error> where
    M: DocumentMapping,
    S: SerializeStruct

Serialise a document mapping as a field using the given serialiser.