reqwest
updated to0.9
.hex
updated to0.3
.Action
support: #23
- New variant
SlackTextContent::User
holdingSlackUserLink
to support new-style for linking to slack users: #21. - Derive
Clone
,PartialEq
,Eq
, andPartialOrd
where appropriate. - Upgraded minimum rust version to 1.17 (field shorthands).
- Replaced
curl
withreqwest
url
(removed) andchrono
crates are no longer re-exported
- Removed
log
crate error-chain
updated to0.11
- Support
mrkdwn_in
field for anAttachment
: #17.
- Need to move to chrono 0.4 since 0.3.1 (with serde 1.0) was yanked.
- Upgrade to serde 1.0 #16
- chrono 0.3.1 is now also required (serde 1.0 support added in 0.3.1). Even though chrono didn't do this as a breaking change it should be for semver. As a result, I'm moving this crate to 0.4.0 to avoid any issues.
- Specify
Content-Type
as json when sending messages #15
- Replaced
quick-error
witherror-chain
- Dependencies updated:
- Serde upgraded to 0.9 (requires rust 1.15)
- Chrono to 0.3
- Curl to 0.4
Payload
PayloadTemplate
is removed.unfurl_links
is nowbool
. No integer transformation is required by the slack API anymore.Attachment
AttachmentTemplate
is removed.color
is now optional.SlackError
is nowError
andSlackResult
is nowResult
. In addition,ErrorKind
has been removed. AllError
variants have also been renamed, removing the superfluousErr
prefix:ErrSlackResp
->Slack
ErrUtf8
->Utf8
ErrFromHex
->FromHex
ErrHexColor
->HexColor
ErrEncoder
-> REMOVED. Replaced withSerialize
.ErrCurl
->Curl
SlackLink
,SlackText
- The
Display
trait is now used to format strings for sending to slack rather thanDebug
. TheDebug
impl is derived now. Slack::new
now returns aResult<Slack>
as it doesUrl
parsing.
PayloadBuilder
andAttachmentBuilder
should be used for building aPayload
orAttachment
respectively. Errors won't be returned until the finalbuild
function is called. At this point, only the first error is displayed. Subsequent errors will only appear once the first error is fixed.Payload
- Added
unfurl_media
option - Three character hex color codes, e.g.
#000
, are now supported. - Add support for sending links and text into slack, see: Text with Links.
- Optional fields no longer are sent in the serialized json message to slack.
- Add
parse
option toPayload
. - New
Attachment
fields have been added.
TryFrom
andTryInto
traits have been added temporarily to this crate until they are formalized in rust proper. See rust-lang/rust#33417 for details.HexColorT
trait removed. Conversions are used instead.