data_gov_ckan/models/user_autocomplete.rs
1/*
2 * CKAN API
3 *
4 * Comprehensive Open Data Knowledge (CKAN) REST API for data management and publishing. CKAN is a powerful data management system that makes data accessible by providing tools to streamline publishing, sharing, finding and using data. This API provides programmatic access to all CKAN functionality including: - Dataset (Package) management - create, read, update, delete datasets - Resource management - manage files and data resources within datasets - Organization and Group management - organize datasets into logical groupings - User management - manage user accounts and permissions - Search functionality - powerful search across all data - Metadata and tagging - rich metadata and taxonomy support - Data validation and quality - ensure data integrity The API follows REST principles and returns JSON responses. Most endpoints support both GET and POST methods. ## API Versions - **API v3** (default): Main action API at `/api/3/action/{action}` - **Utility API v1/v2**: Autocomplete and utility functions at `/api/{version}/util/` - **Legacy API v1**: Basic API information at `/api/1` ## Authentication Many API calls require authentication via API key passed as: - HTTP Header: `Authorization: {api_key}` - URL Parameter: `?api_key={api_key}` - POST Data: `{\"api_key\": \"{api_key}\"}` ## Error Handling All API responses include: - `success`: Boolean indicating if the request was successful - `result`: The actual data (on success) or error details (on failure) - `help`: URL to documentation for the action Error responses include structured error information with error type and detailed messages.
5 *
6 * The version of the OpenAPI document: 3.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct UserAutocomplete {
15 #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
16 pub id: Option<String>,
17 #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
18 pub name: Option<String>,
19 #[serde(rename = "fullname", skip_serializing_if = "Option::is_none")]
20 pub fullname: Option<String>,
21 #[serde(rename = "display_name", skip_serializing_if = "Option::is_none")]
22 pub display_name: Option<String>,
23}
24
25impl UserAutocomplete {
26 pub fn new() -> UserAutocomplete {
27 UserAutocomplete {
28 id: None,
29 name: None,
30 fullname: None,
31 display_name: None,
32 }
33 }
34}