Struct dora_core::descriptor::Descriptor
source · pub struct Descriptor {
pub communication: CommunicationConfig,
pub daemon_config: Option<Value>,
pub deploy: Deploy,
pub nodes: Vec<Node>,
}Fields§
§communication: CommunicationConfig§daemon_config: Option<Value>§deploy: Deploy§nodes: Vec<Node>Implementations§
source§impl Descriptor
impl Descriptor
pub fn resolve_aliases_and_set_defaults(&self) -> Vec<ResolvedNode>
pub fn visualize_as_mermaid(&self) -> Result<String>
pub async fn read(path: &Path) -> Result<Descriptor>
pub fn blocking_read(path: &Path) -> Result<Descriptor>
pub fn parse(buf: Vec<u8>) -> Result<Descriptor>
pub fn check(&self, working_dir: &Path) -> Result<()>
Trait Implementations§
source§impl Clone for Descriptor
impl Clone for Descriptor
source§fn clone(&self) -> Descriptor
fn clone(&self) -> Descriptor
Returns a copy 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 Descriptor
impl Debug for Descriptor
source§impl<'de> Deserialize<'de> for Descriptor
impl<'de> Deserialize<'de> for Descriptor
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
Auto Trait Implementations§
impl RefUnwindSafe for Descriptor
impl Send for Descriptor
impl Sync for Descriptor
impl Unpin for Descriptor
impl UnwindSafe for Descriptor
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