pub struct ComputeBinding {
pub kind: BindingKind,
pub name: String,
pub url_env: Option<String>,
}Expand description
A managed-resource dependency a compute workload declares. It names a resource,
never a project: the owning project comes from the workload’s key
(project/<proj>/compute/<name>), so a workload cannot request another tenant’s
data. boatramp resolves it at launch and injects the endpoint into the guest env.
Fields§
§kind: BindingKindWhich managed resource kind.
name: StringThe named database/store within the kind ("" = the site default, matching
sql.open("")).
url_env: Option<String>The env var the resolved endpoint URL is injected as; None ⇒ the kind default
(sql → BOATRAMP_SQL_URL). The credential is injected as <url_env>_AUTH_TOKEN.
Implementations§
Trait Implementations§
Source§impl Clone for ComputeBinding
impl Clone for ComputeBinding
Source§fn clone(&self) -> ComputeBinding
fn clone(&self) -> ComputeBinding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ComputeBinding
impl Debug for ComputeBinding
Source§impl<'de> Deserialize<'de> for ComputeBinding
impl<'de> Deserialize<'de> for ComputeBinding
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ComputeBinding, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ComputeBinding, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ComputeBinding
Source§impl PartialEq for ComputeBinding
impl PartialEq for ComputeBinding
Source§impl Serialize for ComputeBinding
impl Serialize for ComputeBinding
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ComputeBinding
Auto Trait Implementations§
impl Freeze for ComputeBinding
impl RefUnwindSafe for ComputeBinding
impl Send for ComputeBinding
impl Sync for ComputeBinding
impl Unpin for ComputeBinding
impl UnsafeUnpin for ComputeBinding
impl UnwindSafe for ComputeBinding
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,
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.