pub struct ReadOnlyVolume {
pub source: PodVolumeSource,
pub mount_path: String,
pub sub_path: Option<String>,
}Expand description
A volume mounted read-only into the agent container.
§Examples
use ironflow_core::provider::{PodVolumeSource, ReadOnlyVolume};
let volume = ReadOnlyVolume {
source: PodVolumeSource::ConfigMap { name: "prompts".to_string() },
mount_path: "/data/prompts".to_string(),
sub_path: None,
};
assert_eq!(volume.mount_path, "/data/prompts");Fields§
§source: PodVolumeSourceWhere the data comes from.
mount_path: StringAbsolute mount path inside the container.
sub_path: Option<String>Optional sub-path of the volume to mount instead of its root.
Trait Implementations§
Source§impl Clone for ReadOnlyVolume
impl Clone for ReadOnlyVolume
Source§impl Debug for ReadOnlyVolume
impl Debug for ReadOnlyVolume
Source§impl<'de> Deserialize<'de> for ReadOnlyVolume
impl<'de> Deserialize<'de> for ReadOnlyVolume
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 ReadOnlyVolume
Source§impl PartialEq for ReadOnlyVolume
impl PartialEq for ReadOnlyVolume
Source§impl Serialize for ReadOnlyVolume
impl Serialize for ReadOnlyVolume
impl StructuralPartialEq for ReadOnlyVolume
Auto Trait Implementations§
impl Freeze for ReadOnlyVolume
impl RefUnwindSafe for ReadOnlyVolume
impl Send for ReadOnlyVolume
impl Sync for ReadOnlyVolume
impl Unpin for ReadOnlyVolume
impl UnsafeUnpin for ReadOnlyVolume
impl UnwindSafe for ReadOnlyVolume
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
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§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.