pub struct LinuxSandboxSecurityContext {
pub namespace_options: SingularPtrField<NamespaceOption>,
pub selinux_options: SingularPtrField<SELinuxOption>,
pub run_as_user: SingularPtrField<Int64Value>,
pub run_as_group: SingularPtrField<Int64Value>,
pub readonly_rootfs: bool,
pub supplemental_groups: Vec<i64>,
pub privileged: bool,
pub seccomp_profile_path: String,
pub unknown_fields: UnknownFields,
pub cached_size: CachedSize,
}Fields§
§namespace_options: SingularPtrField<NamespaceOption>§selinux_options: SingularPtrField<SELinuxOption>§run_as_user: SingularPtrField<Int64Value>§run_as_group: SingularPtrField<Int64Value>§readonly_rootfs: bool§supplemental_groups: Vec<i64>§privileged: bool§seccomp_profile_path: String§unknown_fields: UnknownFields§cached_size: CachedSizeImplementations§
Source§impl LinuxSandboxSecurityContext
impl LinuxSandboxSecurityContext
pub fn new() -> LinuxSandboxSecurityContext
pub fn get_namespace_options(&self) -> &NamespaceOption
pub fn clear_namespace_options(&mut self)
pub fn has_namespace_options(&self) -> bool
pub fn set_namespace_options(&mut self, v: NamespaceOption)
pub fn mut_namespace_options(&mut self) -> &mut NamespaceOption
pub fn take_namespace_options(&mut self) -> NamespaceOption
pub fn get_selinux_options(&self) -> &SELinuxOption
pub fn clear_selinux_options(&mut self)
pub fn has_selinux_options(&self) -> bool
pub fn set_selinux_options(&mut self, v: SELinuxOption)
pub fn mut_selinux_options(&mut self) -> &mut SELinuxOption
pub fn take_selinux_options(&mut self) -> SELinuxOption
pub fn get_run_as_user(&self) -> &Int64Value
pub fn clear_run_as_user(&mut self)
pub fn has_run_as_user(&self) -> bool
pub fn set_run_as_user(&mut self, v: Int64Value)
pub fn mut_run_as_user(&mut self) -> &mut Int64Value
pub fn take_run_as_user(&mut self) -> Int64Value
pub fn get_run_as_group(&self) -> &Int64Value
pub fn clear_run_as_group(&mut self)
pub fn has_run_as_group(&self) -> bool
pub fn set_run_as_group(&mut self, v: Int64Value)
pub fn mut_run_as_group(&mut self) -> &mut Int64Value
pub fn take_run_as_group(&mut self) -> Int64Value
pub fn get_readonly_rootfs(&self) -> bool
pub fn clear_readonly_rootfs(&mut self)
pub fn set_readonly_rootfs(&mut self, v: bool)
pub fn get_supplemental_groups(&self) -> &[i64]
pub fn clear_supplemental_groups(&mut self)
pub fn set_supplemental_groups(&mut self, v: Vec<i64>)
pub fn mut_supplemental_groups(&mut self) -> &mut Vec<i64>
pub fn take_supplemental_groups(&mut self) -> Vec<i64>
pub fn get_privileged(&self) -> bool
pub fn clear_privileged(&mut self)
pub fn set_privileged(&mut self, v: bool)
pub fn get_seccomp_profile_path(&self) -> &str
pub fn clear_seccomp_profile_path(&mut self)
pub fn set_seccomp_profile_path(&mut self, v: String)
pub fn mut_seccomp_profile_path(&mut self) -> &mut String
pub fn take_seccomp_profile_path(&mut self) -> String
Trait Implementations§
Source§impl Clear for LinuxSandboxSecurityContext
impl Clear for LinuxSandboxSecurityContext
Source§impl Clone for LinuxSandboxSecurityContext
impl Clone for LinuxSandboxSecurityContext
Source§fn clone(&self) -> LinuxSandboxSecurityContext
fn clone(&self) -> LinuxSandboxSecurityContext
Returns a copy of the value. Read more
1.0.0 · 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 LinuxSandboxSecurityContext
impl Debug for LinuxSandboxSecurityContext
Source§impl<'a> Default for &'a LinuxSandboxSecurityContext
impl<'a> Default for &'a LinuxSandboxSecurityContext
Source§fn default() -> &'a LinuxSandboxSecurityContext
fn default() -> &'a LinuxSandboxSecurityContext
Returns the “default value” for a type. Read more
Source§impl Default for LinuxSandboxSecurityContext
impl Default for LinuxSandboxSecurityContext
Source§fn default() -> LinuxSandboxSecurityContext
fn default() -> LinuxSandboxSecurityContext
Returns the “default value” for a type. Read more
Source§impl Message for LinuxSandboxSecurityContext
impl Message for LinuxSandboxSecurityContext
Source§fn is_initialized(&self) -> bool
fn is_initialized(&self) -> bool
True iff all required fields are initialized.
Always returns
true for protobuf 3.Source§fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> ProtobufResult<()>
fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> ProtobufResult<()>
Update this message object with fields read from given stream.
Source§fn compute_size(&self) -> u32
fn compute_size(&self) -> u32
Compute and cache size of this message and all nested messages
Source§fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream<'_>,
) -> ProtobufResult<()>
fn write_to_with_cached_sizes( &self, os: &mut CodedOutputStream<'_>, ) -> ProtobufResult<()>
Write message to the stream. Read more
Source§fn get_cached_size(&self) -> u32
fn get_cached_size(&self) -> u32
Get size previously computed by
compute_size.Source§fn get_unknown_fields(&self) -> &UnknownFields
fn get_unknown_fields(&self) -> &UnknownFields
Get a reference to unknown fields.
Source§fn mut_unknown_fields(&mut self) -> &mut UnknownFields
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
Get a mutable reference to unknown fields.
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
View self as mutable
Any.Source§fn descriptor(&self) -> &'static MessageDescriptor
fn descriptor(&self) -> &'static MessageDescriptor
Message descriptor for this message, used for reflection.
Source§fn new() -> LinuxSandboxSecurityContext
fn new() -> LinuxSandboxSecurityContext
Create an empty message object. Read more
Source§fn descriptor_static() -> &'static MessageDescriptor
fn descriptor_static() -> &'static MessageDescriptor
Get message descriptor for message type. Read more
Source§fn default_instance() -> &'static LinuxSandboxSecurityContext
fn default_instance() -> &'static LinuxSandboxSecurityContext
Return a pointer to default immutable message with static lifetime. Read more
Source§fn parse_from(is: &mut CodedInputStream<'_>) -> Result<Self, ProtobufError>where
Self: Sized,
fn parse_from(is: &mut CodedInputStream<'_>) -> Result<Self, ProtobufError>where
Self: Sized,
Parse message from stream.
Source§fn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), ProtobufError>
fn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), ProtobufError>
Write the message to the stream. Read more
Source§fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream<'_>,
) -> Result<(), ProtobufError>
fn write_length_delimited_to( &self, os: &mut CodedOutputStream<'_>, ) -> Result<(), ProtobufError>
Write the message to the stream prepending the message with message length
encoded as varint.
Source§fn write_length_delimited_to_vec(
&self,
vec: &mut Vec<u8>,
) -> Result<(), ProtobufError>
fn write_length_delimited_to_vec( &self, vec: &mut Vec<u8>, ) -> Result<(), ProtobufError>
Write the message to the vec, prepend the message with message length
encoded as varint.
Source§fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>
fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>
Update this message object with fields read from given stream.
Source§fn parse_from_reader(reader: &mut dyn Read) -> Result<Self, ProtobufError>where
Self: Sized,
fn parse_from_reader(reader: &mut dyn Read) -> Result<Self, ProtobufError>where
Self: Sized,
Parse message from reader.
Parse stops on EOF or when error encountered.
Source§fn parse_from_bytes(bytes: &[u8]) -> Result<Self, ProtobufError>where
Self: Sized,
fn parse_from_bytes(bytes: &[u8]) -> Result<Self, ProtobufError>where
Self: Sized,
Parse message from byte array.
Source§fn check_initialized(&self) -> Result<(), ProtobufError>
fn check_initialized(&self) -> Result<(), ProtobufError>
Check if all required fields of this object are initialized.
Source§fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>
fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>
Write the message to the writer.
Source§fn write_to_vec(&self, v: &mut Vec<u8>) -> Result<(), ProtobufError>
fn write_to_vec(&self, v: &mut Vec<u8>) -> Result<(), ProtobufError>
Write the message to bytes vec.
Source§fn write_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>
fn write_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>
Write the message to bytes vec.
Source§fn write_length_delimited_to_writer(
&self,
w: &mut dyn Write,
) -> Result<(), ProtobufError>
fn write_length_delimited_to_writer( &self, w: &mut dyn Write, ) -> Result<(), ProtobufError>
Write the message to the writer, prepend the message with message length
encoded as varint.
Source§fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>
fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>
Write the message to the bytes vec, prepend the message with message length
encoded as varint.
Source§impl ProtobufValue for LinuxSandboxSecurityContext
impl ProtobufValue for LinuxSandboxSecurityContext
Source§fn as_ref(&self) -> ReflectValueRef<'_>
fn as_ref(&self) -> ReflectValueRef<'_>
As ref
Source§fn is_non_zero(&self) -> bool
fn is_non_zero(&self) -> bool
Is value non-zero?
Source§fn as_ref_copy(&self) -> ReflectValueRef<'static>
fn as_ref_copy(&self) -> ReflectValueRef<'static>
impl StructuralPartialEq for LinuxSandboxSecurityContext
Auto Trait Implementations§
impl !Freeze for LinuxSandboxSecurityContext
impl RefUnwindSafe for LinuxSandboxSecurityContext
impl Send for LinuxSandboxSecurityContext
impl Sync for LinuxSandboxSecurityContext
impl Unpin for LinuxSandboxSecurityContext
impl UnwindSafe for LinuxSandboxSecurityContext
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