pub struct Sdk { /* private fields */ }Implementations§
Source§impl Sdk
impl Sdk
pub fn preserve_presence(self, enabled: bool) -> Self
Sourcepub fn open_enums(self, enabled: bool) -> Self
pub fn open_enums(self, enabled: bool) -> Self
Preserve future wire enum values using extensible value classes. Known constants remain available; Java enum switches require the default policy.
pub fn flat(self) -> Self
pub fn namespaced(self) -> Self
Trait Implementations§
Source§impl Plugin<Java> for Sdk
impl Plugin<Java> for Sdk
fn kind(&self) -> &'static str
fn meta(&self) -> &Meta
fn provides(&self) -> Vec<Provision>
fn generate(&self, cx: &mut PluginContext<'_, Java>) -> Result<()>
Source§fn phase(&self) -> PluginPhase
fn phase(&self) -> PluginPhase
Selects the plugin lifecycle phase. The default honors
Self::enforce
so a post plugin only needs to override that shorthand.Source§fn supports_native_input(&self) -> bool
fn supports_native_input(&self) -> bool
Opt in when this plugin reads protocol contracts instead of the legacy HTTP context.
Native generation skips packages containing HTTP-only plugins before loading sources.
fn requires(&self) -> Vec<Requirement>
Auto Trait Implementations§
impl Freeze for Sdk
impl RefUnwindSafe for Sdk
impl Send for Sdk
impl Sync for Sdk
impl Unpin for Sdk
impl UnsafeUnpin for Sdk
impl UnwindSafe for Sdk
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