pub struct ResourceDefinition {
pub name: String,
pub kind: String,
pub ownership: Ownership,
pub depends_on: Vec<String>,
pub identity: Option<IdentitySpec>,
pub ports: BTreeMap<String, PortRequest>,
pub exports: BTreeMap<String, String>,
pub actions: BTreeMap<String, ActionSpec>,
pub checkpoint: Option<CheckpointSpec>,
pub restore: Option<RestoreSpec>,
pub cleanup: Option<CleanupSpec>,
pub definition_rev: String,
}Expand description
A lifecycle unit that re-establishes per-branch state that can’t travel
as content. Parsed from .newgit/resources/<name>.toml; the name comes
from the filename.
Fields§
§name: String§kind: String§ownership: Ownership§depends_on: Vec<String>§identity: Option<IdentitySpec>§ports: BTreeMap<String, PortRequest>§exports: BTreeMap<String, String>§actions: BTreeMap<String, ActionSpec>§checkpoint: Option<CheckpointSpec>§restore: Option<RestoreSpec>§cleanup: Option<CleanupSpec>§definition_rev: Stringsha256:<hex12> of the definition file contents.
Implementations§
Trait Implementations§
Source§impl Clone for ResourceDefinition
impl Clone for ResourceDefinition
Source§fn clone(&self) -> ResourceDefinition
fn clone(&self) -> ResourceDefinition
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 ResourceDefinition
impl Debug for ResourceDefinition
Source§impl PartialEq for ResourceDefinition
impl PartialEq for ResourceDefinition
impl StructuralPartialEq for ResourceDefinition
Auto Trait Implementations§
impl Freeze for ResourceDefinition
impl RefUnwindSafe for ResourceDefinition
impl Send for ResourceDefinition
impl Sync for ResourceDefinition
impl Unpin for ResourceDefinition
impl UnsafeUnpin for ResourceDefinition
impl UnwindSafe for ResourceDefinition
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