pub struct Request {
pub url_path: String,
}
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: String
The 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>>, Error>
pub fn list(&self, lp: &ListParams) -> Result<Request<Vec<u8>>, Error>
List a collection of a resource
sourcepub fn watch(
&self,
lp: &ListParams,
ver: &str
) -> Result<Request<Vec<u8>>, Error>
pub fn watch(
&self,
lp: &ListParams,
ver: &str
) -> Result<Request<Vec<u8>>, Error>
Watch a resource at a given version
sourcepub fn create(
&self,
pp: &PostParams,
data: Vec<u8>
) -> Result<Request<Vec<u8>>, Error>
pub fn create(
&self,
pp: &PostParams,
data: Vec<u8>
) -> Result<Request<Vec<u8>>, Error>
Create an instance of a resource
sourcepub fn delete(
&self,
name: &str,
dp: &DeleteParams
) -> Result<Request<Vec<u8>>, Error>
pub fn delete(
&self,
name: &str,
dp: &DeleteParams
) -> Result<Request<Vec<u8>>, Error>
Delete an instance of a resource
sourcepub fn delete_collection(
&self,
dp: &DeleteParams,
lp: &ListParams
) -> Result<Request<Vec<u8>>, Error>
pub fn delete_collection(
&self,
dp: &DeleteParams,
lp: &ListParams
) -> Result<Request<Vec<u8>>, 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>>, Error>
pub fn get_subresource(
&self,
subresource_name: &str,
name: &str
) -> Result<Request<Vec<u8>>, 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> 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)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more