Struct kube::api::ListParams[][src]

pub struct ListParams {
    pub field_selector: Option<String>,
    pub include_uninitialized: bool,
    pub label_selector: Option<String>,
    pub timeout: Option<u32>,
}
Expand description

Common query parameters used in watch/list/delete calls on collections

Constructed internally with a builder on Informer and Reflector, but can be passed to the helper function of Resource.

Fields

field_selector: Option<String>include_uninitialized: boollabel_selector: Option<String>timeout: Option<u32>

Implementations

impl ListParams[src]

Builder interface to ListParams

Usage:

use kube::api::ListParams;
let lp = ListParams::default()
    .timeout(60)
    .labels("kubernetes.io/lifecycle=spot");

pub fn timeout(self, timeout_secs: u32) -> Self[src]

Configure the timeout for list/watch calls

This limits the duration of the call, regardless of any activity or inactivity. Defaults to 290s

pub fn fields(self, field_selector: &str) -> Self[src]

Configure the selector to restrict the list of returned objects by their fields.

Defaults to everything. Supports ‘=’, ‘==’, and ‘!=’, and can comma separate: key1=value1,key2=value2 The server only supports a limited number of field queries per type.

pub fn labels(self, label_selector: &str) -> Self[src]

Configure the selector to restrict the list of returned objects by their labels.

Defaults to everything. Supports ‘=’, ‘==’, and ‘!=’, and can comma separate: key1=value1,key2=value2

pub fn include_uninitialized(self) -> Self[src]

If called, partially initialized resources are included in watch/list responses.

Trait Implementations

impl Clone for ListParams[src]

fn clone(&self) -> ListParams[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for ListParams[src]

fn default() -> ListParams[src]

Returns the “default value” for a type. Read more

Auto Trait Implementations

impl RefUnwindSafe for ListParams

impl Send for ListParams

impl Sync for ListParams

impl Unpin for ListParams

impl UnwindSafe for ListParams

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.