pub fn fee(&self) -> Result<Option<Grams>> {
        match self  {
            CommonMsgInfo::IntMsgInfo(header) => {
                let mut result = header.ihr_fee.clone();
                result.add(&header.fwd_fee)?;
                Ok(Some(result))
            },
            CommonMsgInfo::ExtInMsgInfo(header) => {
                Ok(Some(header.import_fee.clone()))
            }
            _ => Ok(None),
        }
    }
///
/// Get message header fees
/// Fee collected only for transfer internal and external outbound messages.
/// for other types of messages, function returned None
///
Get message header fees
Fee collected only for transfer internal and external outbound messages.
for other types of messages, function returned None
Get message header fees Fee collected only for transfer internal and external outbound messages . for other types of messages function returned None
pub fn fee(&self) -> Result<Option<Grams>> {
        match self  {
            CommonMsgInfo::IntMsgInfo(header) => {
                let mut result = header.ihr_fee.clone();
                result.add(&header.fwd_fee)?;
                Ok(Some(result))
            },
            CommonMsgInfo::ExtInMsgInfo(header) => {
                Ok(Some(header.import_fee.clone()))
            }
            _ => Ok(None),
        }
    }
pub fn fee ( & self ) -> Result < Option < Grams > > { match self { CommonMsgInfo :: IntMsgInfo ( header ) => { let mut result = header . ihr_fee . clone ( ) ; result . add ( & header . fwd_fee ) ? ; Ok ( Some ( result ) ) } , CommonMsgInfo :: ExtInMsgInfo ( header ) => { Ok ( Some ( header . import_fee . clone ( ) ) ) } _ => Ok ( None ) , } }
Get message header fees
Fee collected only for transfer internal and external outbound messages.
Get message header fees Fee collected only for transfer internal and external outbound messages .
&self
&self