pub struct PlatformParams {
pub watermark_enabled: Option<bool>,
}Expand description
GLM platform-ecosystem request parameters, flattened into the request body.
These are Zhipu-platform features rather than text-generation controls, so
they are grouped here instead of sitting loose on
RequestBody. Flattened
through RequestBody::zai_platform; see the module docs.
Fields§
§watermark_enabled: Option<bool>Whether AI-generated output carries Zhipu’s explicit and implicit
watermark. GLM’s compliant default is true; false is only accepted
for accounts that have signed the corresponding waiver.
Trait Implementations§
Source§impl Clone for PlatformParams
impl Clone for PlatformParams
Source§impl Debug for PlatformParams
impl Debug for PlatformParams
Source§impl Default for PlatformParams
impl Default for PlatformParams
Source§impl<'de> Deserialize<'de> for PlatformParams
impl<'de> Deserialize<'de> for PlatformParams
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 PlatformParams
impl RefUnwindSafe for PlatformParams
impl Send for PlatformParams
impl Sync for PlatformParams
impl Unpin for PlatformParams
impl UnsafeUnpin for PlatformParams
impl UnwindSafe for PlatformParams
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