pub enum Dependant<T> {
App {
app: DependantApp,
},
Application {
application: DependantApplication<T>,
},
Certificate {
certificate: DependantCertificate,
},
Proxy {
proxy: DependantProxy,
},
Trifonius {
trifonius: DependantTrifonius<T>,
},
}Expand description
Describes a app or application dependency.
There are a number of methods that return whether a certain resource (e.g. a secret, a volume or an environment variable) is used by a dependant app or application. This enum represents one usage of the resource by an app or application.
Variants§
App
Identifies an app dependent on the resource
Fields
§
app: DependantAppApplication
Identifies an application dependent on the resource
Fields
§
application: DependantApplication<T>Certificate
Identifies a certificate dependent on the resource
Fields
§
certificate: DependantCertificateProxy
Identifies a proxy dependent on the resource
Fields
§
proxy: DependantProxyTrifonius
Identifies a Trifonius dependent on the resource
Fields
§
trifonius: DependantTrifonius<T>Implementations§
Source§impl<T> Dependant<T>
impl<T> Dependant<T>
pub fn app(app_id: String, resources: Vec<String>) -> Self
pub fn application( application_id: String, instances: u64, injections: Vec<T>, ) -> Self
pub fn certificate( certificate_id: String, secret_kind: CertificateSecretKind, ) -> Self
pub fn proxy(proxy_id: String, instances: u64) -> Self
pub fn service(service_id: &str, instances: u64, injections: Vec<T>) -> Self
pub fn trifonius( trifonius_id: String, instances: u64, injections: Vec<T>, ) -> Self
pub fn id(&self) -> &str
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for Dependant<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Dependant<T>where
T: Deserialize<'de>,
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
Source§impl<T: Ord> Ord for Dependant<T>
impl<T: Ord> Ord for Dependant<T>
Source§impl<T: PartialEq> PartialEq for Dependant<T>
impl<T: PartialEq> PartialEq for Dependant<T>
Source§impl<T: PartialOrd> PartialOrd for Dependant<T>
impl<T: PartialOrd> PartialOrd for Dependant<T>
impl<T: Eq> Eq for Dependant<T>
impl<T> StructuralPartialEq for Dependant<T>
Auto Trait Implementations§
impl<T> Freeze for Dependant<T>
impl<T> RefUnwindSafe for Dependant<T>where
T: RefUnwindSafe,
impl<T> Send for Dependant<T>where
T: Send,
impl<T> Sync for Dependant<T>where
T: Sync,
impl<T> Unpin for Dependant<T>where
T: Unpin,
impl<T> UnsafeUnpin for Dependant<T>
impl<T> UnwindSafe for Dependant<T>where
T: UnwindSafe,
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.