#[non_exhaustive]pub struct Notebook {
pub name: String,
pub service: String,
pub last_author: String,
pub notebook_update_time: Option<Timestamp>,
/* private fields */
}Expand description
Represents a Jupyter notebook IPYNB file, such as a Colab Enterprise notebook file, that is associated with a finding.
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.name: StringThe name of the notebook.
service: StringThe source notebook service, for example, “Colab Enterprise”.
The user ID of the latest author to modify the notebook.
notebook_update_time: Option<Timestamp>The most recent time the notebook was updated.
Implementations§
Source§impl Notebook
impl Notebook
pub fn new() -> Self
Sourcepub fn set_service<T: Into<String>>(self, v: T) -> Self
pub fn set_service<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_notebook_update_time<T>(self, v: T) -> Self
pub fn set_notebook_update_time<T>(self, v: T) -> Self
Sets the value of notebook_update_time.
§Example
ⓘ
use wkt::Timestamp;
let x = Notebook::new().set_notebook_update_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_notebook_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_notebook_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of notebook_update_time.
§Example
ⓘ
use wkt::Timestamp;
let x = Notebook::new().set_or_clear_notebook_update_time(Some(Timestamp::default()/* use setters */));
let x = Notebook::new().set_or_clear_notebook_update_time(None::<Timestamp>);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