pub struct ProjectCreate {
pub description: Option<String>,
pub domain_id: String,
pub enabled: bool,
pub extra: Option<Value>,
pub is_domain: bool,
pub name: String,
pub parent_id: Option<String>,
}Expand description
New project data.
Fields§
§description: Option<String>The description of the project.
domain_id: StringThe ID of the domain for the project.
enabled: boolIf set to true, project is enabled. If set to false, project is
disabled. The defaults is true.
extra: Option<Value>Additional project properties.
is_domain: boolIndicates whether the project also acts as a domain. If set to true, this project acts as both a project and domain. As a domain, the project provides a name space in which you can create users, groups, and other projects. If set to false, this project behaves as a regular project that contains only resources. Default is false. You cannot update this parameter after you create the project.
name: StringThe name of the project, which must be unique within the owning domain. A project can have the same name as its domain.
parent_id: Option<String>The ID of the parent of the project.
If specified on project creation, this places the project within a
hierarchy and implicitly defines the owning domain, which will be the
same domain as the parent specified. If parent_id is not specified and
is_domain is false, then the project will use its owning domain as its
parent. If is_domain is true (i.e. the project is acting as a domain),
then parent_id must not specified (or if it is, it must be null) since
domains have no parents.
parent_id is immutable, and can’t be updated after the project is
created - hence a project cannot be moved within the hierarchy.
Trait Implementations§
Source§impl Clone for ProjectCreate
impl Clone for ProjectCreate
Source§fn clone(&self) -> ProjectCreate
fn clone(&self) -> ProjectCreate
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProjectCreate
impl Debug for ProjectCreate
Source§impl<'de> Deserialize<'de> for ProjectCreate
impl<'de> Deserialize<'de> for ProjectCreate
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ProjectCreate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ProjectCreate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl From<ProjectCreate> for ProjectCreate
impl From<ProjectCreate> for ProjectCreate
Source§fn from(value: ProjectCreate) -> Self
fn from(value: ProjectCreate) -> Self
Source§impl PartialEq for ProjectCreate
impl PartialEq for ProjectCreate
Source§impl Serialize for ProjectCreate
impl Serialize for ProjectCreate
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Source§impl ToSchema for ProjectCreate
impl ToSchema for ProjectCreate
Source§impl Validate for ProjectCreate
impl Validate for ProjectCreate
Source§impl<'v_a> ValidateArgs<'v_a> for ProjectCreate
impl<'v_a> ValidateArgs<'v_a> for ProjectCreate
type Args = ()
fn validate_with_args( &self, args: <ProjectCreate as ValidateArgs<'v_a>>::Args, ) -> Result<(), ValidationErrors>
impl StructuralPartialEq for ProjectCreate
Auto Trait Implementations§
impl Freeze for ProjectCreate
impl RefUnwindSafe for ProjectCreate
impl Send for ProjectCreate
impl Sync for ProjectCreate
impl Unpin for ProjectCreate
impl UnsafeUnpin for ProjectCreate
impl UnwindSafe for ProjectCreate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more