Skip to main content

News

Struct News 

Source
pub struct News(/* private fields */);
Expand description

The News (35=B) message.

Implementations§

Source§

impl News

Source

pub const MSG_TYPE: &[u8] = b"B"

Source

pub fn from_raw(raw: RawMessage) -> Self

Source

pub fn raw(&self) -> &RawMessage

Source

pub fn header(&self) -> Header<'_>

Source

pub fn trailer(&self) -> Trailer<'_>

Source

pub fn orig_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue>

The OrigTime (42) field.

Source

pub fn urgency(&self) -> Result<Option<Urgency<'_>>, InvalidValue>

The Urgency (61) field.

Source

pub fn headline(&self) -> Result<Option<&str>, InvalidValue>

The Headline (148) field.

Source

pub fn encoded_headline_len(&self) -> Result<Option<i64>, InvalidValue>

The EncodedHeadlineLen (358) field.

Source

pub fn encoded_headline(&self) -> Option<&[u8]>

The EncodedHeadline (359) field.

Source

pub fn routing_ids(&self) -> Result<Instances<'_, RoutingGrp<'_>>, InvalidValue>

The instances of the NoRoutingIDs (215) group.

Source

pub fn related_sym(&self) -> Result<Instances<'_, InstrmtGrp<'_>>, InvalidValue>

The instances of the NoRelatedSym (146) group.

Source

pub fn legs(&self) -> Result<Instances<'_, InstrmtLegGrp<'_>>, InvalidValue>

The instances of the NoLegs (555) group.

Source

pub fn underlyings( &self, ) -> Result<Instances<'_, UndInstrmtGrp<'_>>, InvalidValue>

The instances of the NoUnderlyings (711) group.

Source

pub fn lines_of_text( &self, ) -> Result<Instances<'_, LinesOfTextGrp<'_>>, InvalidValue>

The instances of the NoLinesOfText (33) group.

The URLLink (149) field.

Source

pub fn raw_data_length(&self) -> Result<Option<i64>, InvalidValue>

The RawDataLength (95) field.

Source

pub fn raw_data(&self) -> Option<&[u8]>

The RawData (96) field.

Trait Implementations§

Source§

impl Debug for News

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for News

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !Freeze for News

§

impl Forget for News

§

impl Move for News

§

impl RefUnwindSafe for News

§

impl Send for News
where Bytes: Send, RawVecInner: Send,

§

impl Sync for News
where Bytes: Sync, RawVecInner: Sync,

§

impl Unpin for News
where *const u8: Unpin, Align8<*mut ()>: Unpin, &'static Vtable: Unpin, *const u8 is !null: Unpin,

§

impl UnsafeUnpin for News
where *const u8: UnsafeUnpin, Align8<*mut ()>: UnsafeUnpin, &'static Vtable: UnsafeUnpin, *const u8 is !null: UnsafeUnpin, PhantomData<RawField>: UnsafeUnpin,

§

impl UnwindSafe for News
where *const u8: UnwindSafe, Align8<*mut ()>: UnwindSafe, &'static Vtable: UnwindSafe, RawVecInner: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.