#[non_exhaustive]pub enum CodeInterpreterNetworkPolicy {
Disabled {
extra: Extra,
},
Allowlist {
allowed_domains: Vec<String>,
domain_secrets: Option<Vec<CodeInterpreterDomainSecret>>,
extra: Extra,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for CodeInterpreterNetworkPolicy
impl Clone for CodeInterpreterNetworkPolicy
Source§fn clone(&self) -> CodeInterpreterNetworkPolicy
fn clone(&self) -> CodeInterpreterNetworkPolicy
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 CodeInterpreterNetworkPolicy
impl Debug for CodeInterpreterNetworkPolicy
Source§impl<'de> Deserialize<'de> for CodeInterpreterNetworkPolicy
impl<'de> Deserialize<'de> for CodeInterpreterNetworkPolicy
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
impl StructuralPartialEq for CodeInterpreterNetworkPolicy
Auto Trait Implementations§
impl Freeze for CodeInterpreterNetworkPolicy
impl RefUnwindSafe for CodeInterpreterNetworkPolicy
impl Send for CodeInterpreterNetworkPolicy
impl Sync for CodeInterpreterNetworkPolicy
impl Unpin for CodeInterpreterNetworkPolicy
impl UnsafeUnpin for CodeInterpreterNetworkPolicy
impl UnwindSafe for CodeInterpreterNetworkPolicy
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