Trait rustiful::JsonPost
[−]
[src]
pub trait JsonPost where
Self: JsonApiResource + ToJson, { type Error: Error + Send; type Context: FromRequest; fn create(
json: JsonApiData<Self::Attrs>,
params: &JsonApiParams<Self::FilterField, Self::SortField>,
ctx: Self::Context
) -> Result<JsonApiData<Self::Attrs>, Self::Error>
where
Status: for<'b> From<&'b Self::Error>; }
Associated Types
type Error: Error + Send
type Context: FromRequest
Required Methods
fn create(
json: JsonApiData<Self::Attrs>,
params: &JsonApiParams<Self::FilterField, Self::SortField>,
ctx: Self::Context
) -> Result<JsonApiData<Self::Attrs>, Self::Error> where
Status: for<'b> From<&'b Self::Error>,
json: JsonApiData<Self::Attrs>,
params: &JsonApiParams<Self::FilterField, Self::SortField>,
ctx: Self::Context
) -> Result<JsonApiData<Self::Attrs>, Self::Error> where
Status: for<'b> From<&'b Self::Error>,