pub struct ChildLink {
pub child_singular: String,
pub child_base_path: String,
pub child_accessor_params: Vec<String>,
}Expand description
A direct child resource of a parent resource, for generating child-navigation and child-create
methods on the parent’s scoped client. See ServicePlan::direct_children.
Fields§
§child_singular: StringThe child resource singular — used as the navigation accessor method name (e.g. schema).
child_base_path: StringThe child service’s base_path / module segment (e.g. schemas), used to reference the
child’s generated clients as crate::codegen::<base_path>::….
child_accessor_params: Vec<String>The child’s full accessor params (ancestors + own leaf), e.g. ["catalog_name","schema_name"].
The leading entries equal the parent’s accessor params (the prefix relation); the final entry
is the child’s own name component.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChildLink
impl RefUnwindSafe for ChildLink
impl Send for ChildLink
impl Sync for ChildLink
impl Unpin for ChildLink
impl UnsafeUnpin for ChildLink
impl UnwindSafe for ChildLink
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