pub struct RevisionTemplate {
pub metadata: Option<ObjectMeta>,
pub spec: Option<RevisionSpec>,
}
Expand description
RevisionTemplateSpec describes the data a revision should have when created from a template.
This type is not used in any activity, and only used as part of another schema.
Fields§
§metadata: Option<ObjectMeta>
Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. The following annotation keys set properties of the created revision: * autoscaling.knative.dev/minScale
sets the minimum number of instances. * autoscaling.knative.dev/maxScale
sets the maximum number of instances. * run.googleapis.com/cloudsql-instances
sets Cloud SQL connections. Multiple values should be comma separated. * run.googleapis.com/vpc-access-connector
sets a Serverless VPC Access connector. * run.googleapis.com/vpc-access-egress
sets VPC egress. Supported values are all-traffic
, all
(deprecated), and private-ranges-only
. all-traffic
and all
provide the same functionality. all
is deprecated but will continue to be supported. Prefer all-traffic
.
spec: Option<RevisionSpec>
RevisionSpec holds the desired state of the Revision (from the client).
Trait Implementations§
Source§impl Clone for RevisionTemplate
impl Clone for RevisionTemplate
Source§fn clone(&self) -> RevisionTemplate
fn clone(&self) -> RevisionTemplate
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for RevisionTemplate
impl Debug for RevisionTemplate
Source§impl Default for RevisionTemplate
impl Default for RevisionTemplate
Source§fn default() -> RevisionTemplate
fn default() -> RevisionTemplate
Source§impl<'de> Deserialize<'de> for RevisionTemplate
impl<'de> Deserialize<'de> for RevisionTemplate
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>,
Source§impl Serialize for RevisionTemplate
impl Serialize for RevisionTemplate
impl Part for RevisionTemplate
Auto Trait Implementations§
impl Freeze for RevisionTemplate
impl RefUnwindSafe for RevisionTemplate
impl Send for RevisionTemplate
impl Sync for RevisionTemplate
impl Unpin for RevisionTemplate
impl UnwindSafe for RevisionTemplate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more