Trait rustiful::JsonGet
[−]
[src]
pub trait JsonGet where
Self: JsonApiResource + ToJson, { type Error: Error + Send; type Context: FromRequest; fn find(
id: Self::JsonApiIdType,
params: &JsonApiParams<Self::FilterField, Self::SortField>,
ctx: Self::Context
) -> Result<Option<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 find(
id: Self::JsonApiIdType,
params: &JsonApiParams<Self::FilterField, Self::SortField>,
ctx: Self::Context
) -> Result<Option<JsonApiData<Self::Attrs>>, Self::Error> where
Status: for<'b> From<&'b Self::Error>,
id: Self::JsonApiIdType,
params: &JsonApiParams<Self::FilterField, Self::SortField>,
ctx: Self::Context
) -> Result<Option<JsonApiData<Self::Attrs>>, Self::Error> where
Status: for<'b> From<&'b Self::Error>,