Struct kube_core::request::Request [−][src]
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
impl Request
[src]
impl Request
[src]Convenience methods found from API conventions
pub fn watch(&self, lp: &ListParams, ver: &str) -> Result<Request<Vec<u8>>>
[src]
pub fn watch(&self, lp: &ListParams, ver: &str) -> Result<Request<Vec<u8>>>
[src]Watch a resource at a given version
pub fn create(&self, pp: &PostParams, data: Vec<u8>) -> Result<Request<Vec<u8>>>
[src]
pub fn create(&self, pp: &PostParams, data: Vec<u8>) -> Result<Request<Vec<u8>>>
[src]Create an instance of a resource
pub fn delete(&self, name: &str, dp: &DeleteParams) -> Result<Request<Vec<u8>>>
[src]
pub fn delete(&self, name: &str, dp: &DeleteParams) -> Result<Request<Vec<u8>>>
[src]Delete an instance of a resource
pub fn delete_collection(
&self,
dp: &DeleteParams,
lp: &ListParams
) -> Result<Request<Vec<u8>>>
[src]
pub fn delete_collection(
&self,
dp: &DeleteParams,
lp: &ListParams
) -> Result<Request<Vec<u8>>>
[src]Delete a collection of a resource
impl Request
[src]
impl Request
[src]Subresources
pub fn get_subresource(
&self,
subresource_name: &str,
name: &str
) -> Result<Request<Vec<u8>>>
[src]
pub fn get_subresource(
&self,
subresource_name: &str,
name: &str
) -> Result<Request<Vec<u8>>>
[src]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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more