pub struct News(/* private fields */);Expand description
The News (35=B) message.
Implementations§
Source§impl News
impl News
pub const MSG_TYPE: &[u8] = b"B"
pub fn from_raw(raw: RawMessage) -> Self
pub fn raw(&self) -> &RawMessage
pub fn header(&self) -> Header<'_>
pub fn trailer(&self) -> Trailer<'_>
Sourcepub fn orig_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue>
pub fn orig_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue>
The OrigTime (42) field.
Sourcepub fn encoded_headline_len(&self) -> Result<Option<i64>, InvalidValue>
pub fn encoded_headline_len(&self) -> Result<Option<i64>, InvalidValue>
The EncodedHeadlineLen (358) field.
Sourcepub fn encoded_headline(&self) -> Option<&[u8]>
pub fn encoded_headline(&self) -> Option<&[u8]>
The EncodedHeadline (359) field.
Sourcepub fn routing_ids(
&self,
) -> Result<Instances<'_, NewsRoutingIDs<'_>>, InvalidValue>
pub fn routing_ids( &self, ) -> Result<Instances<'_, NewsRoutingIDs<'_>>, InvalidValue>
The instances of the NoRoutingIDs (215) group.
The instances of the NoRelatedSym (146) group.
Sourcepub fn lines_of_text(
&self,
) -> Result<Instances<'_, NewsLinesOfText<'_>>, InvalidValue>
pub fn lines_of_text( &self, ) -> Result<Instances<'_, NewsLinesOfText<'_>>, InvalidValue>
The instances of the LinesOfText (33) group.
Sourcepub fn raw_data_length(&self) -> Result<Option<i64>, InvalidValue>
pub fn raw_data_length(&self) -> Result<Option<i64>, InvalidValue>
The RawDataLength (95) field.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for News
impl Forget for News
impl Move for News
impl RefUnwindSafe for News
impl Send for News
impl Sync for News
impl Unpin for News
impl UnsafeUnpin for News
impl UnwindSafe for News
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