get

Function get 

Source
pub fn get(id: i32) -> Post
Expand description

Get a post by id

ยงExample

use json_placeholder_data::posts::get;
assert_eq!(
    get(1).title.as_str(),
    "sunt aut facere repellat provident occaecati excepturi optio reprehenderit",
);