pub struct Venture {
pub name: String,
pub domain: String,
pub public_url: String,
pub cors_origins: Vec<String>,
pub env: VentureEnv,
pub brand: Brand,
}Expand description
Identity and CORS configuration for the venture this harness serves.
use cratefield_core::Venture;
let v = Venture::new("factory0", "factory0.ventures")
.public_url("https://factory0.ventures")
.cors_origins(["https://factory0.ventures"]);
assert_eq!(v.name, "factory0");Fields§
§name: StringKebab-case venture name (factory0).
domain: StringApex domain (factory0.ventures); the API serves api.<domain>.
public_url: StringAbsolute public URL the API is linked from.
cors_origins: Vec<String>CORS allowlist. Never * (architecture section 6).
env: VentureEnvDeployment environment.
brand: BrandMail branding (issue #12).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Venture
impl RefUnwindSafe for Venture
impl Send for Venture
impl Sync for Venture
impl Unpin for Venture
impl UnsafeUnpin for Venture
impl UnwindSafe for Venture
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