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: bool
label_selector: Option<String>
timeout: Option<u32>
Implementations
impl ListParams
[src]
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]
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]
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]
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]
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]
impl Clone for ListParams
[src]fn clone(&self) -> 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]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Default for ListParams
[src]
impl Default for ListParams
[src]fn default() -> 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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
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]
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