pub struct GetTemplateQuery {
pub include_endpoint_bound_templates: Option<bool>,
pub include_public_templates: Option<bool>,
pub include_runpod_templates: Option<bool>,
}Expand description
Query parameters for retrieving individual templates with filtering options.
Similar to ListTemplatesQuery but for single template retrieval.
Controls access to templates based on their type and visibility.
Useful when you need to access a specific template that might be public or official.
§Access Control
By default, only your own private templates are accessible. To access public or official templates, you must explicitly enable the corresponding flags.
§Examples
use runpod_sdk::model::GetTemplateQuery;
// Access any type of template
let query = GetTemplateQuery {
include_public_templates: Some(true),
include_runpod_templates: Some(true),
include_endpoint_bound_templates: Some(true),
};Fields§
§include_endpoint_bound_templates: Option<bool>Include templates bound to Serverless endpoints in the search scope.
Required if the target template is currently bound to an endpoint.
Defaults to false if not specified.
include_public_templates: Option<bool>Include public templates in the search scope.
Required if the target template is a community-created public template.
Defaults to false if not specified.
include_runpod_templates: Option<bool>Include official RunPod templates in the search scope.
Required if the target template is an official RunPod template.
Defaults to false if not specified.
Trait Implementations§
Source§impl Clone for GetTemplateQuery
impl Clone for GetTemplateQuery
Source§fn clone(&self) -> GetTemplateQuery
fn clone(&self) -> GetTemplateQuery
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more