pub struct ListTemplatesQuery {
pub include_endpoint_bound_templates: Option<bool>,
pub include_public_templates: Option<bool>,
pub include_runpod_templates: Option<bool>,
}Expand description
Query parameters for listing templates with filtering options.
Control which templates are included in the response based on their
type, visibility, and binding status. All parameters are optional
and default to false, meaning only your private templates are returned by default.
§Filtering Strategy
Templates are categorized into different groups:
- Private Templates: Your own private templates (always included)
- Public Templates: Community-created public templates
- RunPod Templates: Official templates maintained by RunPod
- Endpoint-bound Templates: Templates currently used by Serverless endpoints
§Examples
use runpod_sdk::model::ListTemplatesQuery;
// Get all available templates (private + public + official)
let all_templates = ListTemplatesQuery {
include_public_templates: Some(true),
include_runpod_templates: Some(true),
include_endpoint_bound_templates: Some(true),
};
// Get only official RunPod templates
let official_only = ListTemplatesQuery {
include_runpod_templates: Some(true),
..Default::default()
};Fields§
§include_endpoint_bound_templates: Option<bool>Include templates that are currently bound to Serverless endpoints.
These templates are actively in use and may have restrictions on modification.
Defaults to false if not specified.
include_public_templates: Option<bool>Include community-made public templates in the response.
Public templates can be used by anyone and may generate revenue for their creators.
Defaults to false if not specified.
include_runpod_templates: Option<bool>Include official RunPod templates in the response.
These are curated, maintained, and optimized templates provided by RunPod
for popular frameworks and common use cases.
Defaults to false if not specified.
Trait Implementations§
Source§impl Clone for ListTemplatesQuery
impl Clone for ListTemplatesQuery
Source§fn clone(&self) -> ListTemplatesQuery
fn clone(&self) -> ListTemplatesQuery
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more