pub struct LinkDescriptor {
pub permission_sets: Vec<String>,
pub env: Vec<String>,
}Expand description
What a workload that links a resource of this type gets.
The extension computes a link’s environment variables from the resource’s outputs, and declares their names here, so a release can see two links that set the same variable. The permission sets are fixed per type, because setup grants them before the resource has outputs.
Fields§
§permission_sets: Vec<String>Ids of the permission sets the workload gets on the linked resource.
env: Vec<String>Names of the environment variables the workload gets. A link that sets any other name fails the deployment.
Trait Implementations§
Source§impl Clone for LinkDescriptor
impl Clone for LinkDescriptor
Source§impl Debug for LinkDescriptor
impl Debug for LinkDescriptor
Source§impl<'de> Deserialize<'de> for LinkDescriptor
impl<'de> Deserialize<'de> for LinkDescriptor
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 LinkDescriptor
Source§impl PartialEq for LinkDescriptor
impl PartialEq for LinkDescriptor
Source§impl Serialize for LinkDescriptor
impl Serialize for LinkDescriptor
impl StructuralPartialEq for LinkDescriptor
Auto Trait Implementations§
impl Forget for LinkDescriptor
impl Freeze for LinkDescriptor
impl Move for LinkDescriptor
impl RefUnwindSafe for LinkDescriptor
impl Send for LinkDescriptor
impl Sync for LinkDescriptor
impl Unpin for LinkDescriptor
impl UnsafeUnpin for LinkDescriptor
impl UnwindSafe for LinkDescriptor
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.