pub struct ProjectRequest {
pub description: Option<String>,
pub display_name: Option<String>,
pub metadata: ObjectMeta,
}Expand description
ProjecRequest is the set of options necessary to fully qualify a project request
Fields§
§description: Option<String>Description is the description to apply to a project
display_name: Option<String>DisplayName is the display name to apply to a project
metadata: ObjectMetaStandard object’s metadata.
Implementations§
Source§impl ProjectRequest
impl ProjectRequest
Sourcepub fn create_project_request(
body: &ProjectRequest,
optional: CreateOptional<'_>,
) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<CreateResponse<Self>>), RequestError>
pub fn create_project_request( body: &ProjectRequest, optional: CreateOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<CreateResponse<Self>>), RequestError>
create a ProjectRequest
Use the returned k8s_openapi::ResponseBody<k8s_openapi::CreateResponse<Self>> constructor, or k8s_openapi::CreateResponse<Self> directly, to parse the HTTP response.
§Arguments
-
body -
optionalOptional parameters. Use
Default::default()to not pass any.
Source§impl ProjectRequest
impl ProjectRequest
Sourcepub fn list_project_request(
optional: ListOptional<'_>,
) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<ListProjectRequestResponse>), RequestError>
pub fn list_project_request( optional: ListOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<ListProjectRequestResponse>), RequestError>
list objects of kind ProjectRequest
This operation only supports listing all items of this type.
Use the returned k8s_openapi::ResponseBody<ListProjectRequestResponse> constructor, or ListProjectRequestResponse directly, to parse the HTTP response.
§Arguments
-
optionalOptional parameters. Use
Default::default()to not pass any.
Source§impl ProjectRequest
impl ProjectRequest
Sourcepub fn watch_project_request(
optional: WatchOptional<'_>,
) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<WatchResponse<Self>>), RequestError>
pub fn watch_project_request( optional: WatchOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<WatchResponse<Self>>), RequestError>
list objects of kind ProjectRequest
This operation only supports watching one item, or a list of items, of this type for changes.
Use the returned k8s_openapi::ResponseBody<k8s_openapi::WatchResponse<Self>> constructor, or k8s_openapi::WatchResponse<Self> directly, to parse the HTTP response.
§Arguments
-
optionalOptional parameters. Use
Default::default()to not pass any.
Trait Implementations§
Source§impl Clone for ProjectRequest
impl Clone for ProjectRequest
Source§fn clone(&self) -> ProjectRequest
fn clone(&self) -> ProjectRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProjectRequest
impl Debug for ProjectRequest
Source§impl Default for ProjectRequest
impl Default for ProjectRequest
Source§fn default() -> ProjectRequest
fn default() -> ProjectRequest
Source§impl<'de> Deserialize<'de> for ProjectRequest
impl<'de> Deserialize<'de> for ProjectRequest
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl Metadata for ProjectRequest
impl Metadata for ProjectRequest
Source§impl PartialEq for ProjectRequest
impl PartialEq for ProjectRequest
Source§impl Resource for ProjectRequest
impl Resource for ProjectRequest
Source§const API_VERSION: &'static str = "project.openshift.io/v1"
const API_VERSION: &'static str = "project.openshift.io/v1"
Resource::GROUP and Resource::VERSION (eg "apiextensions.k8s.io/v1beta1")
or just the version for resources without a group (eg "v1"). Read more