Debian Codegraph @

src/api/locations.rs

raw symbols SCIP
1 use craterust-analyzer cargo railway-core 0.3.0 crate/::Placerust-analyzer cargo railway-core 0.3.0 types/Place#;
2
3 /// The response given by [`Provider::locations`](crate::Provider::locations)
4 pub type LocationsResponserust-analyzer cargo railway-core 0.3.0 api/locations/LocationsResponse# = Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<Placerust-analyzer cargo railway-core 0.3.0 types/Place#>;
5
6 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:)]
7 /// The options for [`Provider::locations`](crate::Provider::locations)
8 pub struct LocationsOptionsrust-analyzer cargo railway-core 0.3.0 api/locations/LocationsOptions# {
9 /// What to query for.
10 pub queryrust-analyzer cargo railway-core 0.3.0 api/locations/LocationsOptions#query.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#,
11 /// How many results to return.
12 pub resultsrust-analyzer cargo railway-core 0.3.0 api/locations/LocationsOptions#results.: u64,
13 /// What language to query in.
14 pub languagerust-analyzer cargo railway-core 0.3.0 api/locations/LocationsOptions#language.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>,
15 }
16
17 impl Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default# for LocationsOptionsrust-analyzer cargo railway-core 0.3.0 api/locations/LocationsOptions# {
18 fn defaultrust-analyzer cargo railway-core 0.3.0 api/locations/impl#[LocationsOptions][Default]default().() -> Selfrust-analyzer cargo railway-core 0.3.0 api/locations/impl#[LocationsOptions][Default] {
19 Selfrust-analyzer cargo railway-core 0.3.0 api/locations/impl#[LocationsOptions][Default] {
20 queryrust-analyzer cargo railway-core 0.3.0 api/locations/LocationsOptions#query.: Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default#::defaultrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String][Default]default().(),
21 resultsrust-analyzer cargo railway-core 0.3.0 api/locations/LocationsOptions#results.: 10,
22 languagerust-analyzer cargo railway-core 0.3.0 api/locations/LocationsOptions#language.: Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default#::defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`][Default]default().(),
23 }
24 }
25 }