pub struct WorkflowFileName(/* private fields */);Expand description
Validated basename for a generated file below .github/workflows/.
Implementations§
Source§impl WorkflowFileName
impl WorkflowFileName
Sourcepub fn new(value: impl Into<String>) -> Result<Self, WorkflowConfigError>
pub fn new(value: impl Into<String>) -> Result<Self, WorkflowConfigError>
Validate a workflow basename ending in .yml or .yaml.
§Errors
Rejects paths, control characters, YAML syntax, dot sequences, and names longer than 128 bytes.
Sourcepub fn repository_path(&self) -> String
pub fn repository_path(&self) -> String
Return the repository-relative workflow path.
Trait Implementations§
Source§impl Clone for WorkflowFileName
impl Clone for WorkflowFileName
Source§impl Debug for WorkflowFileName
impl Debug for WorkflowFileName
impl Eq for WorkflowFileName
Source§impl Ord for WorkflowFileName
impl Ord for WorkflowFileName
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for WorkflowFileName
impl PartialEq for WorkflowFileName
Source§impl PartialOrd for WorkflowFileName
impl PartialOrd for WorkflowFileName
impl StructuralPartialEq for WorkflowFileName
Auto Trait Implementations§
impl Freeze for WorkflowFileName
impl RefUnwindSafe for WorkflowFileName
impl Send for WorkflowFileName
impl Sync for WorkflowFileName
impl Unpin for WorkflowFileName
impl UnsafeUnpin for WorkflowFileName
impl UnwindSafe for WorkflowFileName
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.