pub struct ServicePlan {
pub service_name: String,
pub handler_name: String,
pub base_path: String,
pub package: String,
pub methods: Vec<MethodPlan>,
pub managed_resources: Vec<ManagedResource>,
pub documentation: Option<String>,
pub hierarchy: Vec<ResourceHierarchy>,
}Expand description
Plan for generating code for a single service
Fields§
§service_name: StringService name (e.g., “CatalogsService”)
handler_name: StringHandler trait name (e.g., “CatalogHandler”)
base_path: StringBase URL path for this service (e.g., “catalogs”)
package: StringProto package name (e.g., “unitycatalog.catalogs.v1”)
methods: Vec<MethodPlan>Methods to generate for this service
managed_resources: Vec<ManagedResource>Resources managed by this service
documentation: Option<String>Documentation from protobuf service comments
hierarchy: Vec<ResourceHierarchy>Ancestor chain for this service’s managed resource, derived cross-service from
resource_reference { child_type } annotations.
Entries are ordered root-first (shallowest ancestor first). For example, for
a Table service this would be [catalog_name (depth 0), schema_name (depth 1)].
Empty when no resource_reference annotations are present — codegen falls back to
naming heuristics in that case.
Trait Implementations§
Source§impl Clone for ServicePlan
impl Clone for ServicePlan
Source§fn clone(&self) -> ServicePlan
fn clone(&self) -> ServicePlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ServicePlan
impl RefUnwindSafe for ServicePlan
impl Send for ServicePlan
impl Sync for ServicePlan
impl Unpin for ServicePlan
impl UnsafeUnpin for ServicePlan
impl UnwindSafe for ServicePlan
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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