Struct json_api::doc::DocumentBuilder
[−]
[src]
pub struct DocumentBuilder<T: PrimaryData> { /* fields omitted */ }
Methods
impl<T: PrimaryData> DocumentBuilder<T>[src]
fn finalize(&mut self) -> Result<Document<T>, Error>[src]
fn data<V>(&mut self, value: V) -> &mut Self where
V: Into<Data<T>>, [src]
V: Into<Data<T>>,
fn include(&mut self, value: Object) -> &mut Self[src]
fn jsonapi(&mut self, value: JsonApi) -> &mut Self[src]
fn link<K>(&mut self, key: K, value: Link) -> &mut Self where
K: AsRef<str>, [src]
K: AsRef<str>,
fn meta<K, V>(&mut self, key: K, value: V) -> &mut Self where
K: AsRef<str>,
V: Into<Value>, [src]
K: AsRef<str>,
V: Into<Value>,