pub struct JobTemplateManifest {Show 19 fields
pub template_version: u32,
pub id: String,
pub name: String,
pub version: String,
pub kind: JobTemplateKind,
pub description: String,
pub params: JobTemplateParams,
pub trigger: Option<Value>,
pub action: Option<Value>,
pub policy: Option<Value>,
pub outputs: Vec<String>,
pub secrets: Vec<JobTemplateSecret>,
pub reads_untrusted: bool,
pub owner: Option<String>,
pub reporter: Option<CloudReporter>,
pub expect: Option<CloudExpect>,
pub max_duration_minutes: Option<u32>,
pub run_now: Option<CloudRunNow>,
pub aggregate: bool,
}Fields§
§template_version: u32§id: String§name: String§version: String§kind: JobTemplateKind§description: String§params: JobTemplateParams§trigger: Option<Value>§action: Option<Value>§policy: Option<Value>§outputs: Vec<String>§secrets: Vec<JobTemplateSecret>§reads_untrusted: boolThe job reads text nobody vouches for (a pull request’s, an inbound message’s), whatever its trigger.
owner: Option<String>A cloud template’s fields (§4.3); a job template carries none of them.
reporter: Option<CloudReporter>§expect: Option<CloudExpect>§max_duration_minutes: Option<u32>§run_now: Option<CloudRunNow>§aggregate: boolThe job reports a summary (runs per day, failures) instead of each run.
Implementations§
Source§impl JobTemplateManifest
impl JobTemplateManifest
Sourcepub fn reads_untrusted_input(&self) -> bool
pub fn reads_untrusted_input(&self) -> bool
Whether a run reads untrusted input: declared, or an event trigger.
Sourcepub fn holds_secrets(&self) -> bool
pub fn holds_secrets(&self) -> bool
Whether a run holds secrets: a declared secret or a credential parameter.
pub fn outside_writes(&self) -> Vec<&str>
Sourcepub fn requires_approval(&self) -> bool
pub fn requires_approval(&self) -> bool
policy.approval is required.
Trait Implementations§
Source§impl Clone for JobTemplateManifest
impl Clone for JobTemplateManifest
Source§fn clone(&self) -> JobTemplateManifest
fn clone(&self) -> JobTemplateManifest
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 JobTemplateManifest
impl Debug for JobTemplateManifest
Source§impl<'de> Deserialize<'de> for JobTemplateManifest
impl<'de> Deserialize<'de> for JobTemplateManifest
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
Source§impl PartialEq for JobTemplateManifest
impl PartialEq for JobTemplateManifest
Source§impl Serialize for JobTemplateManifest
impl Serialize for JobTemplateManifest
impl StructuralPartialEq for JobTemplateManifest
Source§impl TS for JobTemplateManifest
impl TS for JobTemplateManifest
Source§type WithoutGenerics = JobTemplateManifest
type WithoutGenerics = JobTemplateManifest
If this type does not have generic parameters, then
The only requirement for these dummy types is that
WithoutGenerics should just be Self.
If the type does have generic parameters, then all generic parameters must be replaced with
a dummy type, e.g ts_rs::Dummy or (). The only requirement for these dummy types is that
EXPORT_TO must be None. Read moreSource§type OptionInnerType = JobTemplateManifest
type OptionInnerType = JobTemplateManifest
If the implementing type is
std::option::Option<T>, then this associated type is set to T.
All other implementations of TS should set this type to Self instead.Source§fn decl_concrete(cfg: &Config) -> String
fn decl_concrete(cfg: &Config) -> String
Declaration of this type using the supplied generic arguments.
The resulting TypeScript definition will not be generic. For that, see
TS::decl().
If this type is not generic, then this function is equivalent to TS::decl().Source§fn decl(cfg: &Config) -> String
fn decl(cfg: &Config) -> String
Declaration of this type, e.g.
type User = { user_id: number, ... }.
This function will panic if the type has no declaration. Read moreSource§fn inline(cfg: &Config) -> String
fn inline(cfg: &Config) -> String
Formats this types definition in TypeScript, e.g
{ user_id: number }.
This function will panic if the type cannot be inlined.Source§fn inline_flattened(cfg: &Config) -> String
fn inline_flattened(cfg: &Config) -> String
Flatten a type declaration.
This function will panic if the type cannot be flattened.
Source§fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
Iterates over all type parameters of this type.
Source§fn output_path() -> Option<PathBuf>
fn output_path() -> Option<PathBuf>
Returns the output path to where
T should be exported, relative to the output directory.
The returned path does not include any base directory. Read moreSource§fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
Iterates over all dependency of this type.
§fn docs() -> Option<String>
fn docs() -> Option<String>
JSDoc comment to describe this type in TypeScript - when
TS is derived, docs are
automatically read from your doc comments or #[doc = ".."] attributes§fn dependencies(cfg: &Config) -> Vec<Dependency>where
Self: 'static,
fn dependencies(cfg: &Config) -> Vec<Dependency>where
Self: 'static,
Resolves all dependencies of this type recursively.
§fn export(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
fn export(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
Manually export this type to the filesystem.
To export this type together with all of its dependencies, use [
TS::export_all]. Read more§fn export_all(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
fn export_all(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
Manually export this type to the filesystem, together with all of its dependencies.
To export only this type, without its dependencies, use [
TS::export]. Read moreAuto Trait Implementations§
impl Freeze for JobTemplateManifest
impl RefUnwindSafe for JobTemplateManifest
impl Send for JobTemplateManifest
impl Sync for JobTemplateManifest
impl Unpin for JobTemplateManifest
impl UnsafeUnpin for JobTemplateManifest
impl UnwindSafe for JobTemplateManifest
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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>,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
Converts
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> ⓘ
Converts
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