Struct kube_client::api::Request
source · [−]pub struct Request {
pub url_path: String,
}client only.Expand description
A Kubernetes request builder
Takes a base_path and supplies constructors for common operations
The extra operations all return http::Request objects.
Fields
url_path: StringThe path component of a url
Implementations
sourceimpl Request
impl Request
Convenience methods found from API conventions
sourcepub fn list(&self, lp: &ListParams) -> Result<Request<Vec<u8, Global>>, Error>
pub fn list(&self, lp: &ListParams) -> Result<Request<Vec<u8, Global>>, Error>
List a collection of a resource
sourcepub fn watch(
&self,
lp: &ListParams,
ver: &str
) -> Result<Request<Vec<u8, Global>>, Error>
pub fn watch(
&self,
lp: &ListParams,
ver: &str
) -> Result<Request<Vec<u8, Global>>, Error>
Watch a resource at a given version
sourcepub fn create(
&self,
pp: &PostParams,
data: Vec<u8, Global>
) -> Result<Request<Vec<u8, Global>>, Error>
pub fn create(
&self,
pp: &PostParams,
data: Vec<u8, Global>
) -> Result<Request<Vec<u8, Global>>, Error>
Create an instance of a resource
sourcepub fn delete(
&self,
name: &str,
dp: &DeleteParams
) -> Result<Request<Vec<u8, Global>>, Error>
pub fn delete(
&self,
name: &str,
dp: &DeleteParams
) -> Result<Request<Vec<u8, Global>>, Error>
Delete an instance of a resource
sourcepub fn delete_collection(
&self,
dp: &DeleteParams,
lp: &ListParams
) -> Result<Request<Vec<u8, Global>>, Error>
pub fn delete_collection(
&self,
dp: &DeleteParams,
lp: &ListParams
) -> Result<Request<Vec<u8, Global>>, Error>
Delete a collection of a resource
sourceimpl Request
impl Request
Subresources
sourcepub fn get_subresource(
&self,
subresource_name: &str,
name: &str
) -> Result<Request<Vec<u8, Global>>, Error>
pub fn get_subresource(
&self,
subresource_name: &str,
name: &str
) -> Result<Request<Vec<u8, Global>>, Error>
Get an instance of the subresource
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more