Skip to main content

Sdk

Struct Sdk 

Source
pub struct Sdk { /* private fields */ }

Implementations§

Source§

impl Sdk

Source

pub fn preserve_presence(self, enabled: bool) -> Self

Source

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.

Source

pub fn flat(self) -> Self

Source

pub fn namespaced(self) -> Self

Source§

impl Sdk

Source

pub fn contract(&self) -> Handle<NativeSdk>

Trait Implementations§

Source§

impl Plugin<Java> for Sdk

Source§

fn kind(&self) -> &'static str

Source§

fn meta(&self) -> &Meta

Source§

fn provides(&self) -> Vec<Provision>

Source§

fn generate(&self, cx: &mut PluginContext<'_, Java>) -> Result<()>

Source§

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 enforce(&self) -> Enforce

Phase shorthand. Existing plugins remain generation plugins.
Source§

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.
Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.