pub struct LogParameters {
pub title: String,
pub file: String,
pub line: u16,
pub end_line: u16,
}
Expand description
Struct which contains the parameters used for custom annotations.
This is used in the notice_log, warn_log and error_log
§Example use case
use actions_github::logger::{LogParameters, notice_log};
let params = LogParameters {
title: String::from("My example"),
file: String::from("src/lib.rs"),
line: 1,
end_line: 3
};
notice_log("There is a problem in the file", Some(params));
Fields§
§title: String
Custom title
file: String
Filename
line: u16
Line number, starting at 1
end_line: u16
End line number
Trait Implementations§
Source§impl Debug for LogParameters
impl Debug for LogParameters
Source§impl Default for LogParameters
impl Default for LogParameters
Auto Trait Implementations§
impl Freeze for LogParameters
impl RefUnwindSafe for LogParameters
impl Send for LogParameters
impl Sync for LogParameters
impl Unpin for LogParameters
impl UnwindSafe for LogParameters
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