#[repr(C)]pub struct NemoRelayNativeLlmSanitizeRequestContext {
pub codec_kind: NemoRelayNativeLlmCodecKind,
pub codec_id: *const NemoRelayNativeString,
pub codec: *const NemoRelayNativeLlmRequestCodec,
}Expand description
Per-call LLM sanitizer context passed over the native ABI.
codec_id is borrowed for the duration of the callback. It is null for
NemoRelayNativeLlmCodecKind::None and
NemoRelayNativeLlmCodecKind::Opaque. For BuiltIn, it is one of the
stable built-in codec IDs; for Runtime, it is the registered codec ID.
Fields§
§codec_kind: NemoRelayNativeLlmCodecKindDiscriminator for the active codec.
codec_id: *const NemoRelayNativeStringOptional borrowed codec identifier.
codec: *const NemoRelayNativeLlmRequestCodecBorrowed request codec capability, or null when no codec is active.
Trait Implementations§
Source§impl Clone for NemoRelayNativeLlmSanitizeRequestContext
impl Clone for NemoRelayNativeLlmSanitizeRequestContext
Source§fn clone(&self) -> NemoRelayNativeLlmSanitizeRequestContext
fn clone(&self) -> NemoRelayNativeLlmSanitizeRequestContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NemoRelayNativeLlmSanitizeRequestContext
Auto Trait Implementations§
impl !Send for NemoRelayNativeLlmSanitizeRequestContext
impl !Sync for NemoRelayNativeLlmSanitizeRequestContext
impl Freeze for NemoRelayNativeLlmSanitizeRequestContext
impl RefUnwindSafe for NemoRelayNativeLlmSanitizeRequestContext
impl Unpin for NemoRelayNativeLlmSanitizeRequestContext
impl UnsafeUnpin for NemoRelayNativeLlmSanitizeRequestContext
impl UnwindSafe for NemoRelayNativeLlmSanitizeRequestContext
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