pub struct Code {
pub functions: Vec<Function>,
pub methods: Vec<TypeMethod>,
pub read_models: Vec<ReadModel>,
pub aggregates: Vec<Aggregate>,
pub inputs: Vec<InputDeclaration>,
pub enums: Vec<EnumDeclaration>,
pub raw_sql: Vec<RawSql>,
pub translation_keys: Vec<KeyLiteral>,
pub features: FeatureCode,
pub entitlements: Vec<EntitlementDeclaration>,
pub telemetry: TelemetryCode,
}Fields§
§functions: Vec<Function>§methods: Vec<TypeMethod>§read_models: Vec<ReadModel>§aggregates: Vec<Aggregate>§inputs: Vec<InputDeclaration>§enums: Vec<EnumDeclaration>§raw_sql: Vec<RawSql>§translation_keys: Vec<KeyLiteral>§features: FeatureCode§entitlements: Vec<EntitlementDeclaration>§telemetry: TelemetryCodeImplementations§
Source§impl Code
impl Code
pub fn function(&self, path: &[String]) -> Option<&Function>
pub fn read_model(&self, name: &str) -> Option<&ReadModel>
pub fn input_of(&self, function: &Function) -> Option<&InputDeclaration>
Sourcepub fn query_of(&self, function: &Function) -> Option<&InputDeclaration>
pub fn query_of(&self, function: &Function) -> Option<&InputDeclaration>
The input a GET reads from its query string, as Query<Q> or Listing<T, Q>.
Source§impl Code
impl Code
pub fn cross_owner_checks(&self) -> Vec<CrossOwnerCheck>
Trait Implementations§
impl Eq for Code
impl StructuralPartialEq for Code
Auto Trait Implementations§
impl Freeze for Code
impl RefUnwindSafe for Code
impl Send for Code
impl Sync for Code
impl Unpin for Code
impl UnsafeUnpin for Code
impl UnwindSafe for Code
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