Skip to content

Instantly share code, notes, and snippets.

@cuongld2
Created September 22, 2020 10:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cuongld2/2726b40f3b9877e0163f200f6cc9ab4c to your computer and use it in GitHub Desktop.
Save cuongld2/2726b40f3b9877e0163f200f6cc9ab4c to your computer and use it in GitHub Desktop.
Define public struct
#[derive(Deserialize, Debug)]
pub struct SearchElement{
pub auth_resource_path: String,
pub field: String,
pub id: String,
pub project_id: String,
#[serde(rename = "type")]
pub typepp: String,
pub value: String,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment