#[non_exhaustive]pub struct InferenceGrants {
pub perform: bool,
}Expand description
Grants for LiveKit Inference, set with AccessToken::with_inference_grants.
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.perform: boolUse LiveKit Inference (LLM, STT, TTS).
Implementations§
Source§impl InferenceGrants
impl InferenceGrants
Sourcepub fn with_perform(self) -> Self
pub fn with_perform(self) -> Self
Allows using LiveKit Inference (LLM, STT, TTS).
Trait Implementations§
Source§impl Clone for InferenceGrants
impl Clone for InferenceGrants
Source§impl Debug for InferenceGrants
impl Debug for InferenceGrants
Source§impl Default for InferenceGrants
impl Default for InferenceGrants
Source§impl<'de> Deserialize<'de> for InferenceGrantswhere
InferenceGrants: Default,
impl<'de> Deserialize<'de> for InferenceGrantswhere
InferenceGrants: Default,
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 InferenceGrants
impl PartialEq for InferenceGrants
Source§impl Serialize for InferenceGrants
impl Serialize for InferenceGrants
impl StructuralPartialEq for InferenceGrants
Auto Trait Implementations§
impl Freeze for InferenceGrants
impl RefUnwindSafe for InferenceGrants
impl Send for InferenceGrants
impl Sync for InferenceGrants
impl Unpin for InferenceGrants
impl UnsafeUnpin for InferenceGrants
impl UnwindSafe for InferenceGrants
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