pub struct WorkflowAction {
pub file: PathBuf,
pub line_number: usize,
pub indentation: String,
pub list_prefix: String,
pub action_slug: String,
pub owner: String,
pub repository: String,
pub version: String,
pub inline_comment: Option<String>,
pub original_line: String,
}Fields§
§file: PathBuf§line_number: usize§indentation: String§list_prefix: String§action_slug: String§owner: String§repository: String§version: String§inline_comment: Option<String>§original_line: StringImplementations§
Source§impl WorkflowAction
impl WorkflowAction
pub fn repository_slug(&self) -> String
pub fn is_pinned(&self) -> bool
pub fn logical_version(&self) -> String
pub fn rendered_line(&self, commit_sha: &str, version_label: &str) -> String
Trait Implementations§
Source§impl Clone for WorkflowAction
impl Clone for WorkflowAction
Source§fn clone(&self) -> WorkflowAction
fn clone(&self) -> WorkflowAction
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 WorkflowAction
impl Debug for WorkflowAction
impl Eq for WorkflowAction
Source§impl PartialEq for WorkflowAction
impl PartialEq for WorkflowAction
impl StructuralPartialEq for WorkflowAction
Auto Trait Implementations§
impl Freeze for WorkflowAction
impl RefUnwindSafe for WorkflowAction
impl Send for WorkflowAction
impl Sync for WorkflowAction
impl Unpin for WorkflowAction
impl UnsafeUnpin for WorkflowAction
impl UnwindSafe for WorkflowAction
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.