[−][src]Trait openstack::common::ResourceQuery
A query for resources.
This is a low-level trait that should not be used directly.
Associated Types
type Item
Item type.
Associated Constants
const DEFAULT_LIMIT: usize
Default limit to use with this query.
Required methods
fn can_paginate(&self) -> Result<bool>
Whether pagination is supported for this query.
fn extract_marker(&self, resource: &Self::Item) -> String
Extract a marker from a resource.
fn fetch_chunk(
&self,
limit: Option<usize>,
marker: Option<String>
) -> Result<Vec<Self::Item>>
&self,
limit: Option<usize>,
marker: Option<String>
) -> Result<Vec<Self::Item>>
Get a chunk of resources.
Provided methods
fn validate(&mut self) -> Result<()>
Validate the query before the first execution.
This call may modify internal representation of the query, so changing the query after calling it may cause undesired side effects.
Implementors
impl ResourceQuery for DetailedFlavorQuery
[src]
type Item = Flavor
const DEFAULT_LIMIT: usize
[src]
fn can_paginate(&self) -> Result<bool>
[src]
fn extract_marker(&self, resource: &Self::Item) -> String
[src]
fn fetch_chunk(
&self,
limit: Option<usize>,
marker: Option<String>
) -> Result<Vec<Self::Item>>
[src]
&self,
limit: Option<usize>,
marker: Option<String>
) -> Result<Vec<Self::Item>>
impl ResourceQuery for DetailedServerQuery
[src]
type Item = Server
const DEFAULT_LIMIT: usize
[src]
fn can_paginate(&self) -> Result<bool>
[src]
fn extract_marker(&self, resource: &Self::Item) -> String
[src]
fn fetch_chunk(
&self,
limit: Option<usize>,
marker: Option<String>
) -> Result<Vec<Self::Item>>
[src]
&self,
limit: Option<usize>,
marker: Option<String>
) -> Result<Vec<Self::Item>>
impl ResourceQuery for FlavorQuery
[src]
type Item = FlavorSummary
const DEFAULT_LIMIT: usize
[src]
fn can_paginate(&self) -> Result<bool>
[src]
fn extract_marker(&self, resource: &Self::Item) -> String
[src]
fn fetch_chunk(
&self,
limit: Option<usize>,
marker: Option<String>
) -> Result<Vec<Self::Item>>
[src]
&self,
limit: Option<usize>,
marker: Option<String>
) -> Result<Vec<Self::Item>>
impl ResourceQuery for KeyPairQuery
[src]
type Item = KeyPair
const DEFAULT_LIMIT: usize
[src]
fn can_paginate(&self) -> Result<bool>
[src]
fn extract_marker(&self, resource: &Self::Item) -> String
[src]
fn fetch_chunk(
&self,
limit: Option<usize>,
marker: Option<String>
) -> Result<Vec<Self::Item>>
[src]
&self,
limit: Option<usize>,
marker: Option<String>
) -> Result<Vec<Self::Item>>
impl ResourceQuery for ServerQuery
[src]
type Item = ServerSummary
const DEFAULT_LIMIT: usize
[src]
fn can_paginate(&self) -> Result<bool>
[src]
fn extract_marker(&self, resource: &Self::Item) -> String
[src]
fn fetch_chunk(
&self,
limit: Option<usize>,
marker: Option<String>
) -> Result<Vec<Self::Item>>
[src]
&self,
limit: Option<usize>,
marker: Option<String>
) -> Result<Vec<Self::Item>>
impl ResourceQuery for ImageQuery
[src]
type Item = Image
const DEFAULT_LIMIT: usize
[src]
fn can_paginate(&self) -> Result<bool>
[src]
fn extract_marker(&self, resource: &Self::Item) -> String
[src]
fn fetch_chunk(
&self,
limit: Option<usize>,
marker: Option<String>
) -> Result<Vec<Self::Item>>
[src]
&self,
limit: Option<usize>,
marker: Option<String>
) -> Result<Vec<Self::Item>>
impl ResourceQuery for FloatingIpQuery
[src]
type Item = FloatingIp
const DEFAULT_LIMIT: usize
[src]
fn can_paginate(&self) -> Result<bool>
[src]
fn extract_marker(&self, resource: &Self::Item) -> String
[src]
fn fetch_chunk(
&self,
limit: Option<usize>,
marker: Option<String>
) -> Result<Vec<Self::Item>>
[src]
&self,
limit: Option<usize>,
marker: Option<String>
) -> Result<Vec<Self::Item>>
fn validate(&mut self) -> Result<()>
[src]
impl ResourceQuery for NetworkQuery
[src]
type Item = Network
const DEFAULT_LIMIT: usize
[src]
fn can_paginate(&self) -> Result<bool>
[src]
fn extract_marker(&self, resource: &Self::Item) -> String
[src]
fn fetch_chunk(
&self,
limit: Option<usize>,
marker: Option<String>
) -> Result<Vec<Self::Item>>
[src]
&self,
limit: Option<usize>,
marker: Option<String>
) -> Result<Vec<Self::Item>>
impl ResourceQuery for PortQuery
[src]
type Item = Port
const DEFAULT_LIMIT: usize
[src]
fn can_paginate(&self) -> Result<bool>
[src]
fn extract_marker(&self, resource: &Self::Item) -> String
[src]
fn fetch_chunk(
&self,
limit: Option<usize>,
marker: Option<String>
) -> Result<Vec<Self::Item>>
[src]
&self,
limit: Option<usize>,
marker: Option<String>
) -> Result<Vec<Self::Item>>
fn validate(&mut self) -> Result<()>
[src]
impl ResourceQuery for RouterQuery
[src]
type Item = Router
const DEFAULT_LIMIT: usize
[src]
fn can_paginate(&self) -> Result<bool>
[src]
fn extract_marker(&self, resource: &Self::Item) -> String
[src]
fn fetch_chunk(
&self,
limit: Option<usize>,
marker: Option<String>
) -> Result<Vec<Self::Item>>
[src]
&self,
limit: Option<usize>,
marker: Option<String>
) -> Result<Vec<Self::Item>>
impl ResourceQuery for SubnetQuery
[src]
type Item = Subnet
const DEFAULT_LIMIT: usize
[src]
fn can_paginate(&self) -> Result<bool>
[src]
fn extract_marker(&self, resource: &Self::Item) -> String
[src]
fn fetch_chunk(
&self,
limit: Option<usize>,
marker: Option<String>
) -> Result<Vec<Self::Item>>
[src]
&self,
limit: Option<usize>,
marker: Option<String>
) -> Result<Vec<Self::Item>>
fn validate(&mut self) -> Result<()>
[src]
impl ResourceQuery for ContainerQuery
[src]
type Item = Container
const DEFAULT_LIMIT: usize
[src]
fn can_paginate(&self) -> Result<bool>
[src]
fn extract_marker(&self, resource: &Self::Item) -> String
[src]
fn fetch_chunk(
&self,
limit: Option<usize>,
marker: Option<String>
) -> Result<Vec<Self::Item>>
[src]
&self,
limit: Option<usize>,
marker: Option<String>
) -> Result<Vec<Self::Item>>