#[non_exhaustive]pub enum FileLocation {
Unspecified,
Container,
Volume,
ProjectFiles,
Unrecognized(i32),
}Expand description
Where a path of a service’s container lies, which says whether it lasts.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unspecified
The zero value: absent, and not sent.
Container
The container’s own files, its image and what it wrote outside volumes, and its scratch space (an anonymous volume, a tmpfs): lost when it is recreated.
Volume
A named volume (ReadPathResponse::volume): kept across deploys and backed up.
ProjectFiles
The project’s files, mounted read-only from its source as deployed: change them with Client::deploy_project.
Unrecognized(i32)
A value this version of the crate does not know, as the number the API sent.
Trait Implementations§
Source§impl Clone for FileLocation
impl Clone for FileLocation
impl Copy for FileLocation
Source§impl Debug for FileLocation
impl Debug for FileLocation
Source§impl Default for FileLocation
impl Default for FileLocation
Source§impl<'de> Deserialize<'de> for FileLocation
From the API’s JSON. A field this version does not know is refused, as the API
refuses one it does not have.
impl<'de> Deserialize<'de> for FileLocation
From the API’s JSON. A field this version does not know is refused, as the API refuses one it does not have.
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
impl Eq for FileLocation
Source§impl Hash for FileLocation
impl Hash for FileLocation
Source§impl PartialEq for FileLocation
impl PartialEq for FileLocation
Source§impl Serialize for FileLocation
As the API’s JSON: the proto’s field names, an enum as its value’s name, a 64-bit
integer as a string, a time as RFC 3339, bytes as base64.
impl Serialize for FileLocation
As the API’s JSON: the proto’s field names, an enum as its value’s name, a 64-bit integer as a string, a time as RFC 3339, bytes as base64.
impl StructuralPartialEq for FileLocation
Auto Trait Implementations§
impl Freeze for FileLocation
impl RefUnwindSafe for FileLocation
impl Send for FileLocation
impl Sync for FileLocation
impl Unpin for FileLocation
impl UnsafeUnpin for FileLocation
impl UnwindSafe for FileLocation
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
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§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
key and return true if they are equal.