pub struct WorkloadIdentity {
pub file: bool,
pub filepath: String,
pub service_name: String,
pub name: String,
pub audience: Option<Vec<String>>,
pub change_mode: Option<String>,
pub change_signal: Option<String>,
pub env: bool,
pub ttl: Option<TimeDelta>,
}
Expand description
WorkloadIdentity is the jobspec block which determines if and how a workload identity is exposed to tasks.
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§file: bool
§filepath: String
§service_name: String
§name: String
§audience: Option<Vec<String>>
§change_mode: Option<String>
§change_signal: Option<String>
§env: bool
§ttl: Option<TimeDelta>
Trait Implementations§
Source§impl Clone for WorkloadIdentity
impl Clone for WorkloadIdentity
Source§fn clone(&self) -> WorkloadIdentity
fn clone(&self) -> WorkloadIdentity
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for WorkloadIdentity
impl Debug for WorkloadIdentity
Source§impl Default for WorkloadIdentity
impl Default for WorkloadIdentity
Source§fn default() -> WorkloadIdentity
fn default() -> WorkloadIdentity
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WorkloadIdentity
impl<'de> Deserialize<'de> for WorkloadIdentity
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 PartialEq for WorkloadIdentity
impl PartialEq for WorkloadIdentity
Source§impl Serialize for WorkloadIdentity
impl Serialize for WorkloadIdentity
impl StructuralPartialEq for WorkloadIdentity
Auto Trait Implementations§
impl Freeze for WorkloadIdentity
impl RefUnwindSafe for WorkloadIdentity
impl Send for WorkloadIdentity
impl Sync for WorkloadIdentity
impl Unpin for WorkloadIdentity
impl UnwindSafe for WorkloadIdentity
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