pub struct ResourceBinding {
pub definition_rev: String,
pub resolved_ports: BTreeMap<String, u16>,
pub resolved_exports: BTreeMap<String, String>,
pub rendered: Vec<RenderRecord>,
pub status: ResourceStatus,
}Expand description
Which concrete instance of a resource this branch instance is bound to: its allocated ports and rendered exports.
Fields§
§definition_rev: String§resolved_ports: BTreeMap<String, u16>§resolved_exports: BTreeMap<String, String>§rendered: Vec<RenderRecord>Files this resource rendered per-instance values into, with the
substitutions as actually applied. Recorded rather than re-derived so
newgit capture can reverse a render whose definition has since been
edited — the binding record is the source of truth for what this
instance is, including what was written into its files.
status: ResourceStatusTrait Implementations§
Source§impl Clone for ResourceBinding
impl Clone for ResourceBinding
Source§fn clone(&self) -> ResourceBinding
fn clone(&self) -> ResourceBinding
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 ResourceBinding
impl Debug for ResourceBinding
Source§impl<'de> Deserialize<'de> for ResourceBinding
impl<'de> Deserialize<'de> for ResourceBinding
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
impl Eq for ResourceBinding
Source§impl PartialEq for ResourceBinding
impl PartialEq for ResourceBinding
Source§impl Serialize for ResourceBinding
impl Serialize for ResourceBinding
impl StructuralPartialEq for ResourceBinding
Auto Trait Implementations§
impl Freeze for ResourceBinding
impl RefUnwindSafe for ResourceBinding
impl Send for ResourceBinding
impl Sync for ResourceBinding
impl Unpin for ResourceBinding
impl UnsafeUnpin for ResourceBinding
impl UnwindSafe for ResourceBinding
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