#[non_exhaustive]pub struct Notebook {
pub dependency_targets: Vec<Target>,
pub disabled: bool,
pub contents: String,
pub tags: Vec<String>,
/* private fields */
}Expand description
Represents a notebook.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.dependency_targets: Vec<Target>A list of actions that this action depends on.
disabled: boolWhether this action is disabled (i.e. should not be run).
contents: StringThe contents of the notebook.
Arbitrary, user-defined tags on this action.
Implementations§
Source§impl Notebook
impl Notebook
pub fn new() -> Self
Sourcepub fn set_dependency_targets<T, V>(self, v: T) -> Self
pub fn set_dependency_targets<T, V>(self, v: T) -> Self
Sets the value of dependency_targets.
Sourcepub fn set_disabled<T: Into<bool>>(self, v: T) -> Self
pub fn set_disabled<T: Into<bool>>(self, v: T) -> Self
Sets the value of disabled.
Sourcepub fn set_contents<T: Into<String>>(self, v: T) -> Self
pub fn set_contents<T: Into<String>>(self, v: T) -> Self
Sets the value of contents.
Sets the value of tags.
Trait Implementations§
impl StructuralPartialEq for Notebook
Auto Trait Implementations§
impl Freeze for Notebook
impl RefUnwindSafe for Notebook
impl Send for Notebook
impl Sync for Notebook
impl Unpin for Notebook
impl UnwindSafe for Notebook
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