pub struct MessageDeltaContentRefusalObject {
pub index: u64,
pub refusal: Option<String>,
}
Expand description
The refusal content that is part of a message.
Fields§
§index: u64
The index of the refusal part in the message.
refusal: Option<String>
Implementations§
Source§impl MessageDeltaContentRefusalObject
impl MessageDeltaContentRefusalObject
Sourcepub fn builder() -> MessageDeltaContentRefusalObjectBuilder<((), ())>
pub fn builder() -> MessageDeltaContentRefusalObjectBuilder<((), ())>
Create a builder for building MessageDeltaContentRefusalObject
.
On the builder, call .index(...)
, .refusal(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of MessageDeltaContentRefusalObject
.
Trait Implementations§
Source§impl Clone for MessageDeltaContentRefusalObject
impl Clone for MessageDeltaContentRefusalObject
Source§fn clone(&self) -> MessageDeltaContentRefusalObject
fn clone(&self) -> MessageDeltaContentRefusalObject
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<'de> Deserialize<'de> for MessageDeltaContentRefusalObject
impl<'de> Deserialize<'de> for MessageDeltaContentRefusalObject
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 MessageDeltaContentRefusalObject
impl PartialEq for MessageDeltaContentRefusalObject
Source§fn eq(&self, other: &MessageDeltaContentRefusalObject) -> bool
fn eq(&self, other: &MessageDeltaContentRefusalObject) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for MessageDeltaContentRefusalObject
Auto Trait Implementations§
impl Freeze for MessageDeltaContentRefusalObject
impl RefUnwindSafe for MessageDeltaContentRefusalObject
impl Send for MessageDeltaContentRefusalObject
impl Sync for MessageDeltaContentRefusalObject
impl Unpin for MessageDeltaContentRefusalObject
impl UnwindSafe for MessageDeltaContentRefusalObject
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