pub struct AppYamlContext {
pub name: String,
pub repo: String,
pub web_bin: String,
pub workers: Vec<String>,
pub env_lines: Option<Vec<EnvLine>>,
pub preserved_name: Option<String>,
pub preserved_region: Option<String>,
pub preserved_github_repo: Option<String>,
pub preserved_github_branch: Option<String>,
}Expand description
Inputs for render_app_yaml. All fields are pre-resolved by the caller.
Fields§
§name: StringSanitized DO app name (output of sanitize_do_app_name).
repo: Stringowner/repo for github.repo, or fallback placeholder.
web_bin: StringThe bin matching the package name — kept for symmetry, not currently
emitted (the web service is hardcoded in the template).
workers: Vec<String>Non-web, non-test-like bins to emit as workers.
env_lines: Option<Vec<EnvLine>>Structured .env.example lines (keys + blank separators). None when
.env.example is missing — the renderer emits an empty envs block and
the caller logs a warning (D-06 graceful missing-file path).
preserved_name: Option<String>Identity override: DO App Platform app name from an existing file.
When Some, takes precedence over name (derived from package name).
preserved_region: Option<String>Identity override: DO region slug from an existing file.
When Some, takes precedence over the default (fra1).
preserved_github_repo: Option<String>Identity override: github.repo from an existing file.
When Some, takes precedence over the git-remote-derived repo.
preserved_github_branch: Option<String>Identity override: github.branch from an existing file.
When Some, takes precedence over the default (main).
Auto Trait Implementations§
impl Freeze for AppYamlContext
impl RefUnwindSafe for AppYamlContext
impl Send for AppYamlContext
impl Sync for AppYamlContext
impl Unpin for AppYamlContext
impl UnsafeUnpin for AppYamlContext
impl UnwindSafe for AppYamlContext
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more