#[non_exhaustive]pub struct FunctionMessage {
pub role: FunctionRole,
pub content: Option<String>,
pub name: String,
pub rest: Rest,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.role: FunctionRole§content: Option<String>§name: String§rest: RestImplementations§
Source§impl FunctionMessage
impl FunctionMessage
Sourcepub fn builder(
role: FunctionRole,
content: Option<String>,
name: String,
) -> FunctionMessageBuilder
pub fn builder( role: FunctionRole, content: Option<String>, name: String, ) -> FunctionMessageBuilder
Start a builder by supplying the required fields in declaration order.
Trait Implementations§
Source§impl Clone for FunctionMessage
impl Clone for FunctionMessage
Source§impl Debug for FunctionMessage
impl Debug for FunctionMessage
Source§impl DeclaredFields for FunctionMessage
impl DeclaredFields for FunctionMessage
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for FunctionMessage
impl<'de> Deserialize<'de> for FunctionMessage
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
Source§impl PartialEq for FunctionMessage
impl PartialEq for FunctionMessage
Source§impl Serialize for FunctionMessage
impl Serialize for FunctionMessage
impl StructuralPartialEq for FunctionMessage
Auto Trait Implementations§
impl Freeze for FunctionMessage
impl RefUnwindSafe for FunctionMessage
impl Send for FunctionMessage
impl Sync for FunctionMessage
impl Unpin for FunctionMessage
impl UnsafeUnpin for FunctionMessage
impl UnwindSafe for FunctionMessage
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