#[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) -> InferenceGrants
pub fn with_perform(self) -> InferenceGrants
Allows using LiveKit Inference (LLM, STT, TTS).
Trait Implementations§
Source§impl Clone for InferenceGrants
impl Clone for InferenceGrants
Source§fn clone(&self) -> InferenceGrants
fn clone(&self) -> InferenceGrants
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 moreSource§impl Debug for InferenceGrants
impl Debug for InferenceGrants
Source§impl Default for InferenceGrants
impl Default for InferenceGrants
Source§fn default() -> InferenceGrants
fn default() -> InferenceGrants
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InferenceGrantswhere
InferenceGrants: Default,
impl<'de> Deserialize<'de> for InferenceGrantswhere
InferenceGrants: Default,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<InferenceGrants, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<InferenceGrants, <__D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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