ListPodsQuery

Struct ListPodsQuery 

Source
pub struct ListPodsQuery {
Show 16 fields pub compute_type: Option<ComputeType>, pub cpu_flavor_id: Option<Vec<CpuFlavorId>>, pub data_center_id: Option<Vec<DataCenterId>>, pub desired_status: Option<PodStatus>, pub endpoint_id: Option<String>, pub gpu_type_id: Option<Vec<GpuTypeId>>, pub id: Option<String>, pub image_name: Option<String>, pub include_machine: Option<bool>, pub include_network_volume: Option<bool>, pub include_savings_plans: Option<bool>, pub include_template: Option<bool>, pub include_workers: Option<bool>, pub name: Option<String>, pub network_volume_id: Option<String>, pub template_id: Option<String>,
}
Expand description

Query parameters for filtering and configuring Pod list operations.

This struct provides various filters and options for customizing the response when listing Pods.

§Examples

use runpod_sdk::model::{ListPodsQuery, ComputeType, PodStatus};

let query = ListPodsQuery {
    compute_type: Some(ComputeType::Gpu),
    desired_status: Some(PodStatus::Running),
    include_machine: Some(true),
    ..Default::default()
};

Fields§

§compute_type: Option<ComputeType>

Filter to only GPU or only CPU Pods.

§cpu_flavor_id: Option<Vec<CpuFlavorId>>

Filter to CPU Pods with any of the listed CPU flavors.

§data_center_id: Option<Vec<DataCenterId>>

Filter to Pods located in any of the provided RunPod data centers.

§desired_status: Option<PodStatus>

Filter to Pods currently in the provided state.

§endpoint_id: Option<String>

Filter to workers on the provided Serverless endpoint. Note that endpoint workers are not included in the response by default.

§gpu_type_id: Option<Vec<GpuTypeId>>

Filter to Pods with any of the listed GPU types attached.

§id: Option<String>

Filter to a specific Pod.

§image_name: Option<String>

Filter to Pods created with the provided image.

§include_machine: Option<bool>

Include information about the machine the Pod is running on.

§include_network_volume: Option<bool>

Include information about the network volume attached to the Pod, if any.

§include_savings_plans: Option<bool>

Include information about the savings plans applied to the Pod.

§include_template: Option<bool>

Include information about the template the Pod uses, if any.

§include_workers: Option<bool>

Set to true to also list Pods which are Serverless workers.

§name: Option<String>

Filter to Pods with the provided name.

§network_volume_id: Option<String>

Filter to Pods with the provided network volume attached.

§template_id: Option<String>

Filter to Pods created from the provided template.

Trait Implementations§

Source§

impl Clone for ListPodsQuery

Source§

fn clone(&self) -> ListPodsQuery

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ListPodsQuery

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ListPodsQuery

Source§

fn default() -> ListPodsQuery

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

impl Serialize for ListPodsQuery

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more