1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//! No authentication provider for public ArcGIS services.
use AuthProvider;
use crate::;
use async_trait;
/// No authentication provider for accessing public ArcGIS services.
///
/// Many ArcGIS services are publicly accessible without authentication.
/// This provider allows querying public feature services, map services, etc.
///
/// # Example
///
/// ```
/// use arcgis::{ArcGISClient, NoAuth, FeatureServiceClient, LayerId};
///
/// # async fn example() -> arcgis::Result<()> {
/// // Create client without authentication
/// let client = ArcGISClient::new(NoAuth);
///
/// // Query public World Cities service
/// let service = FeatureServiceClient::new(
/// "https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/World_Cities/FeatureServer",
/// &client,
/// );
///
/// let features = service
/// .query(LayerId::new(0))
/// .where_clause("POP > 5000000")
/// .limit(10)
/// .execute()
/// .await?;
/// # Ok(())
/// # }
/// ```
;