pub struct EnvironmentRequest { /* private fields */ }Expand description
A request for the Spring Environment endpoint.
Implementations§
Source§impl EnvironmentRequest
impl EnvironmentRequest
Sourcepub fn new<A, I, P>(application: A, profiles: I) -> Result<Self>
pub fn new<A, I, P>(application: A, profiles: I) -> Result<Self>
Creates a new environment request.
Sourcepub fn label(self, label: impl Into<String>) -> Self
pub fn label(self, label: impl Into<String>) -> Self
Overrides the git label, branch, tag, or commit for this request.
Sourcepub fn resolve_placeholders(self, enabled: bool) -> Self
pub fn resolve_placeholders(self, enabled: bool) -> Self
Controls the resolvePlaceholders query parameter used by YAML and properties endpoints.
Sourcepub fn application(&self) -> &str
pub fn application(&self) -> &str
Returns the application name.
Sourcepub fn resolve_placeholders_enabled(&self) -> bool
pub fn resolve_placeholders_enabled(&self) -> bool
Returns whether placeholder resolution should be requested for alternative formats.
Trait Implementations§
Source§impl Clone for EnvironmentRequest
impl Clone for EnvironmentRequest
Source§fn clone(&self) -> EnvironmentRequest
fn clone(&self) -> EnvironmentRequest
Returns a duplicate 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 EnvironmentRequest
impl Debug for EnvironmentRequest
Source§impl PartialEq for EnvironmentRequest
impl PartialEq for EnvironmentRequest
impl Eq for EnvironmentRequest
impl StructuralPartialEq for EnvironmentRequest
Auto Trait Implementations§
impl Freeze for EnvironmentRequest
impl RefUnwindSafe for EnvironmentRequest
impl Send for EnvironmentRequest
impl Sync for EnvironmentRequest
impl Unpin for EnvironmentRequest
impl UnsafeUnpin for EnvironmentRequest
impl UnwindSafe for EnvironmentRequest
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<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.