Endpoint

Struct Endpoint 

Source
pub struct Endpoint {
Show 23 fields pub id: String, pub user_id: Option<String>, pub name: Option<String>, pub version: Option<i32>, pub compute_type: Option<String>, pub workers_min: Option<i32>, pub workers_max: Option<i32>, pub flashboot: Option<bool>, pub idle_timeout: Option<i32>, pub execution_timeout_ms: Option<i32>, pub scaler_type: Option<String>, pub scaler_value: Option<i32>, pub gpu_count: Option<i32>, pub gpu_type_ids: Option<Vec<String>>, pub allowed_cuda_versions: Option<Vec<String>>, pub instance_ids: Option<Vec<String>>, pub network_volume_id: Option<String>, pub data_center_ids: Option<Vec<String>>, pub env: Option<HashMap<String, String>>, pub template_id: Option<String>, pub template: Option<Template>, pub created_at: Option<String>, pub workers: Option<Vec<Pod>>,
}

Fields§

§id: String

Unique ID of the endpoint

§user_id: Option<String>

The user who created the endpoint

§name: Option<String>

A user-defined name for a Serverless endpoint

§version: Option<i32>

The latest version of a Serverless endpoint (updated whenever the template or env vars change)

§compute_type: Option<String>

The compute type: “CPU” or “GPU”

§workers_min: Option<i32>

The minimum number of Workers that will always be running

§workers_max: Option<i32>

The maximum number of Workers that can be running at the same time

§flashboot: Option<bool>

If true, flash boot is used

§idle_timeout: Option<i32>

The number of seconds a Worker can run without taking a job before being scaled down

§execution_timeout_ms: Option<i32>

The maximum number of ms for an individual request before the Worker is stopped

§scaler_type: Option<String>

The method used to scale up Workers: “QUEUE_DELAY” or “REQUEST_COUNT”

§scaler_value: Option<i32>

If scalerType=QUEUE_DELAY, number of seconds before scaling; if REQUEST_COUNT, a divisor for the queue

§gpu_count: Option<i32>

Number of GPUs attached to each Worker

§gpu_type_ids: Option<Vec<String>>

An ordered list of acceptable GPU types (strings)

§allowed_cuda_versions: Option<Vec<String>>

A list of acceptable CUDA versions for GPU endpoints

§instance_ids: Option<Vec<String>>

For CPU endpoints only; a list of CPU instance IDs

§network_volume_id: Option<String>

Unique ID of an attached network volume

§data_center_ids: Option<Vec<String>>

A list of RunPod data center IDs where Workers can be located

§env: Option<HashMap<String, String>>

Environment variables for the endpoint

§template_id: Option<String>

ID of the template used to create this endpoint

§template: Option<Template>

Information about the template (if included in the response)

§created_at: Option<String>

The UTC timestamp when a Serverless endpoint was created

§workers: Option<Vec<Pod>>

Information about the current Workers (if included in the response)

Trait Implementations§

Source§

impl Debug for Endpoint

Source§

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

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

impl Default for Endpoint

Source§

fn default() -> Endpoint

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

impl<'de> Deserialize<'de> for Endpoint

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for Endpoint

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> 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, 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
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,