pub struct PolicyActionDef {
pub action_type: String,
pub target: Option<String>,
pub max_tokens: Option<i32>,
pub mode: Option<String>,
}Fields§
§action_type: String§target: Option<String>§max_tokens: Option<i32>§mode: Option<String>Trait Implementations§
Source§impl Clone for PolicyActionDef
impl Clone for PolicyActionDef
Source§fn clone(&self) -> PolicyActionDef
fn clone(&self) -> PolicyActionDef
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PolicyActionDef
impl Debug for PolicyActionDef
Source§impl<'de> Deserialize<'de> for PolicyActionDef
impl<'de> Deserialize<'de> for PolicyActionDef
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 PolicyActionDef
impl RefUnwindSafe for PolicyActionDef
impl Send for PolicyActionDef
impl Sync for PolicyActionDef
impl Unpin for PolicyActionDef
impl UnwindSafe for PolicyActionDef
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