pub struct NeonBinding {
pub project_id: String,
pub branch: String,
pub branch_name: String,
pub functions: BTreeMap<String, String>,
pub storage_credential: Option<StorageCredentialRef>,
}Available on crate feature
neon only.Expand description
An instance’s binding to a Neon branch: its SourceBinding config for
NEON_SOURCE, written by bind. It holds no secret, only where the
storage credential’s secret is kept.
Fields§
§project_id: StringThe Neon project.
branch: StringThe branch’s id.
branch_name: StringThe branch’s name, for showing.
functions: BTreeMap<String, String>The functions the plan runs on the branch: slug → the variable its URL goes in.
storage_credential: Option<StorageCredentialRef>The storage credential minted for the instance, when the plan uses object storage.
Trait Implementations§
Source§impl Clone for NeonBinding
impl Clone for NeonBinding
Source§impl Debug for NeonBinding
impl Debug for NeonBinding
Source§impl Default for NeonBinding
impl Default for NeonBinding
Source§impl<'de> Deserialize<'de> for NeonBinding
impl<'de> Deserialize<'de> for NeonBinding
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 NeonBinding
Source§impl PartialEq for NeonBinding
impl PartialEq for NeonBinding
Source§impl Serialize for NeonBinding
impl Serialize for NeonBinding
impl StructuralPartialEq for NeonBinding
Auto Trait Implementations§
impl Freeze for NeonBinding
impl RefUnwindSafe for NeonBinding
impl Send for NeonBinding
impl Sync for NeonBinding
impl Unpin for NeonBinding
impl UnsafeUnpin for NeonBinding
impl UnwindSafe for NeonBinding
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§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.