pub struct ProjectReq {
pub project_name: Option<String>,
pub public: Option<Option<bool>>,
pub metadata: Option<Box<ProjectMetadata>>,
pub cve_allowlist: Option<Box<CveAllowlist>>,
pub storage_limit: Option<Option<i64>>,
pub registry_id: Option<Option<i64>>,
}Fields§
§project_name: Option<String>The name of the project.
public: Option<Option<bool>>deprecated, reserved for project creation in replication
metadata: Option<Box<ProjectMetadata>>§cve_allowlist: Option<Box<CveAllowlist>>§storage_limit: Option<Option<i64>>The storage quota of the project.
registry_id: Option<Option<i64>>The ID of referenced registry when creating the proxy cache project
Implementations§
Source§impl ProjectReq
impl ProjectReq
pub fn new() -> ProjectReq
Trait Implementations§
Source§impl Clone for ProjectReq
impl Clone for ProjectReq
Source§fn clone(&self) -> ProjectReq
fn clone(&self) -> ProjectReq
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProjectReq
impl Debug for ProjectReq
Source§impl Default for ProjectReq
impl Default for ProjectReq
Source§fn default() -> ProjectReq
fn default() -> ProjectReq
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProjectReq
impl<'de> Deserialize<'de> for ProjectReq
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ProjectReq
impl PartialEq for ProjectReq
Source§impl Serialize for ProjectReq
impl Serialize for ProjectReq
impl StructuralPartialEq for ProjectReq
Auto Trait Implementations§
impl Freeze for ProjectReq
impl RefUnwindSafe for ProjectReq
impl Send for ProjectReq
impl Sync for ProjectReq
impl Unpin for ProjectReq
impl UnwindSafe for ProjectReq
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
Mutably borrows from an owned value. Read more