///|
/// A copy with `label` replaced.
pub fn Service::with_label(self : Service, label : String) -> Service {
{ ..self, label, }
}
///|
/// A copy with `label` replaced.
pub fn Group::with_label(self : Group, label : String) -> Group {
{ ..self, label, }
}
///|
/// A copy with `services` replaced.
pub fn Architecture::with_services(
self : Architecture,
services : ArrayView[Service],
) -> Architecture {
{ ..self, services: ReadOnlyArray::from_array(services), }
}
///|
/// A copy with `groups` replaced.
pub fn Architecture::with_groups(
self : Architecture,
groups : ArrayView[Group],
) -> Architecture {
{ ..self, groups: ReadOnlyArray::from_array(groups), }
}
///|
/// A copy with `connections` replaced.
pub fn Architecture::with_connections(
self : Architecture,
connections : ArrayView[Connection],
) -> Architecture {
{ ..self, connections: ReadOnlyArray::from_array(connections), }
}
///|
/// A copy with `label` replaced.
pub fn Connection::with_label(self : Connection, label : String?) -> Connection {
{ ..self, label, }
}