Struct k8s_openapi_ext::corev1::KeyToPath
source · [−]Expand description
Maps a string key to a path within a volume.
Fields
key: String
key is the key to project.
mode: Option<i32>
mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
path: String
path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element ‘..’. May not start with the string ‘..’.
Trait Implementations
sourceimpl DeepMerge for KeyToPath
impl DeepMerge for KeyToPath
sourcefn merge_from(&mut self, other: KeyToPath)
fn merge_from(&mut self, other: KeyToPath)
Merge
other
into self
.sourceimpl<'de> Deserialize<'de> for KeyToPath
impl<'de> Deserialize<'de> for KeyToPath
sourcefn deserialize<D>(
deserializer: D
) -> Result<KeyToPath, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<KeyToPath, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for KeyToPath
impl Serialize for KeyToPath
sourcefn 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 KeyToPath
Auto Trait Implementations
impl RefUnwindSafe for KeyToPath
impl Send for KeyToPath
impl Sync for KeyToPath
impl Unpin for KeyToPath
impl UnwindSafe for KeyToPath
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more