#[non_exhaustive]pub struct NoticeSubject {
pub id: String,
pub label: Option<String>,
}Expand description
systemNotice: the durable thing the notice is about. id is required
whenever the object is present; label is the producer’s sanitized,
already-capped display value, omitted when it is empty, never "".
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.id: StringThe subject’s durable identity: for monitor, the monitor’s task id
(its toolCall itemId); for hook, the hook run’s item id.
label: Option<String>The subject’s bounded display label (the hookRun.label shape).
Trait Implementations§
Source§impl Clone for NoticeSubject
impl Clone for NoticeSubject
Source§impl Debug for NoticeSubject
impl Debug for NoticeSubject
Source§impl<'de> Deserialize<'de> for NoticeSubject
impl<'de> Deserialize<'de> for NoticeSubject
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for NoticeSubject
Source§impl PartialEq for NoticeSubject
impl PartialEq for NoticeSubject
Source§impl Serialize for NoticeSubject
impl Serialize for NoticeSubject
impl StructuralPartialEq for NoticeSubject
Auto Trait Implementations§
impl Forget for NoticeSubject
impl Freeze for NoticeSubject
impl Move for NoticeSubject
impl RefUnwindSafe for NoticeSubject
impl Send for NoticeSubject
impl Sync for NoticeSubject
impl Unpin for NoticeSubject
impl UnsafeUnpin for NoticeSubject
impl UnwindSafe for NoticeSubject
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