pub struct WriteFile {
pub path: String,
pub permissions: &'static str,
pub content: String,
}Expand description
A file cloud-init writes before it runs anything (write_files): a recipe’s script, gzip
then base64, which cloud-init decodes with encoding: gz+b64.
Fields§
§path: StringWhere it is written on the machine.
permissions: &'static strIts mode, as permissions wants it (octal text).
content: StringIts content, gzip then base64: a write_files entry’s content with encoding: gz+b64.
Trait Implementations§
impl Eq for WriteFile
impl StructuralPartialEq for WriteFile
Auto Trait Implementations§
impl Freeze for WriteFile
impl RefUnwindSafe for WriteFile
impl Send for WriteFile
impl Sync for WriteFile
impl Unpin for WriteFile
impl UnsafeUnpin for WriteFile
impl UnwindSafe for WriteFile
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,
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.