pub struct ControlPlaneWorkspace {
pub format_version: u32,
pub id: String,
pub name: String,
pub resources: Vec<ResourceManifest>,
pub sites: Vec<SiteProfile>,
pub settings: WorkspaceSettings,
}Fields§
§format_version: u32§id: String§name: String§resources: Vec<ResourceManifest>§sites: Vec<SiteProfile>§settings: WorkspaceSettingsImplementations§
Source§impl ControlPlaneWorkspace
impl ControlPlaneWorkspace
pub fn new( id: impl Into<String>, name: impl Into<String>, ) -> ControlPlaneWorkspace
pub fn load( path: impl AsRef<Path>, ) -> Result<ControlPlaneWorkspace, WorkspaceError>
pub fn save(&self, path: impl AsRef<Path>) -> Result<(), WorkspaceError>
pub fn validate(&self) -> Result<(), WorkspaceError>
pub fn resource(&self, id: &str) -> Option<&ResourceManifest>
Trait Implementations§
Source§impl Clone for ControlPlaneWorkspace
impl Clone for ControlPlaneWorkspace
Source§fn clone(&self) -> ControlPlaneWorkspace
fn clone(&self) -> ControlPlaneWorkspace
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ControlPlaneWorkspace
impl Debug for ControlPlaneWorkspace
Source§impl Default for ControlPlaneWorkspace
impl Default for ControlPlaneWorkspace
Source§fn default() -> ControlPlaneWorkspace
fn default() -> ControlPlaneWorkspace
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ControlPlaneWorkspace
impl<'de> Deserialize<'de> for ControlPlaneWorkspace
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ControlPlaneWorkspace, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ControlPlaneWorkspace, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ControlPlaneWorkspace
Source§impl PartialEq for ControlPlaneWorkspace
impl PartialEq for ControlPlaneWorkspace
Source§impl Serialize for ControlPlaneWorkspace
impl Serialize for ControlPlaneWorkspace
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,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ControlPlaneWorkspace
Auto Trait Implementations§
impl Freeze for ControlPlaneWorkspace
impl RefUnwindSafe for ControlPlaneWorkspace
impl Send for ControlPlaneWorkspace
impl Sync for ControlPlaneWorkspace
impl Unpin for ControlPlaneWorkspace
impl UnsafeUnpin for ControlPlaneWorkspace
impl UnwindSafe for ControlPlaneWorkspace
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