Trait rustiful::JsonPatch
[−]
[src]
pub trait JsonPatch where
Self: JsonApiResource + ToJson, { type Error: Error + Send; type Context: FromRequest; fn update(
id: Self::JsonApiIdType,
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 update(
id: Self::JsonApiIdType,
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>,
id: Self::JsonApiIdType,
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>,