pub struct PhpConfig {
pub extension_name: Option<String>,
pub feature_gate: Option<String>,
pub stubs: Option<StubsConfig>,
pub features: Option<Vec<String>>,
pub serde_rename_all: Option<String>,
}Fields§
§extension_name: Option<String>§feature_gate: Option<String>Feature gate for ext-php-rs (default: “extension-module”).
All generated code is wrapped in #[cfg(feature = "...")].
stubs: Option<StubsConfig>Output directory for generated PHP facade / stubs (e.g., packages/php/src/).
features: Option<Vec<String>>§serde_rename_all: Option<String>Override the serde rename_all strategy for JSON field names (e.g. “camelCase”, “snake_case”). When set, this takes priority over the IR type-level serde_rename_all.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PhpConfig
impl<'de> Deserialize<'de> for PhpConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PhpConfig
impl RefUnwindSafe for PhpConfig
impl Send for PhpConfig
impl Sync for PhpConfig
impl Unpin for PhpConfig
impl UnsafeUnpin for PhpConfig
impl UnwindSafe for PhpConfig
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