pub struct OpenAIHostedShellNetworkPolicy {
pub policy_type: OpenAIHostedShellNetworkPolicyType,
pub allowed_domains: Vec<String>,
pub domain_secrets: Vec<OpenAIHostedShellDomainSecret>,
}Expand description
Request-scoped network policy for OpenAI hosted shell environments.
Fields§
§policy_type: OpenAIHostedShellNetworkPolicyType§allowed_domains: Vec<String>§domain_secrets: Vec<OpenAIHostedShellDomainSecret>Implementations§
Source§impl OpenAIHostedShellNetworkPolicy
impl OpenAIHostedShellNetworkPolicy
pub const fn is_allowlist(&self) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OpenAIHostedShellNetworkPolicy
impl<'de> Deserialize<'de> for OpenAIHostedShellNetworkPolicy
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 Eq for OpenAIHostedShellNetworkPolicy
Source§impl JsonSchema for OpenAIHostedShellNetworkPolicy
impl JsonSchema for OpenAIHostedShellNetworkPolicy
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for OpenAIHostedShellNetworkPolicy
Auto Trait Implementations§
impl Forget for OpenAIHostedShellNetworkPolicy
impl Freeze for OpenAIHostedShellNetworkPolicywhere
*const u8 is !null: Freeze,
PhantomData<String>: Freeze,
PhantomData<OpenAIHostedShellDomainSecret>: Freeze,
impl Move for OpenAIHostedShellNetworkPolicy
impl RefUnwindSafe for OpenAIHostedShellNetworkPolicy
impl Send for OpenAIHostedShellNetworkPolicywhere
RawVecInner: Send,
impl Sync for OpenAIHostedShellNetworkPolicywhere
RawVecInner: Sync,
impl Unpin for OpenAIHostedShellNetworkPolicy
impl UnsafeUnpin for OpenAIHostedShellNetworkPolicywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<OpenAIHostedShellDomainSecret>: UnsafeUnpin,
impl UnwindSafe for OpenAIHostedShellNetworkPolicywhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.