Skip to content

feat(storage): accept String payload for write_object#3480

Merged
dbolduc merged 1 commit intogoogleapis:mainfrom
dbolduc:feat-storage-string-payload
Oct 8, 2025
Merged

feat(storage): accept String payload for write_object#3480
dbolduc merged 1 commit intogoogleapis:mainfrom
dbolduc:feat-storage-string-payload

Conversation

@dbolduc
Copy link
Copy Markdown
Member

@dbolduc dbolduc commented Oct 7, 2025

No description provided.

@dbolduc dbolduc requested a review from coryan October 7, 2025 17:48
@product-auto-label product-auto-label bot added the api: storage Issues related to the Cloud Storage API. label Oct 7, 2025
@codecov
Copy link
Copy Markdown

codecov bot commented Oct 7, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.90%. Comparing base (149be44) to head (dd68f54).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3480      +/-   ##
==========================================
+ Coverage   95.87%   95.90%   +0.02%     
==========================================
  Files         118      118              
  Lines        4730     4732       +2     
==========================================
+ Hits         4535     4538       +3     
+ Misses        195      194       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dbolduc dbolduc marked this pull request as ready for review October 8, 2025 15:09
@dbolduc dbolduc requested a review from a team October 8, 2025 15:09
Copy link
Copy Markdown
Collaborator

@coryan coryan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess one could also use String::as_str, but fewer utterances are better for our customers.

I don't think so. I think we only accept &'static strs. But yeah, they could say bytes::Bytes::from(s).

I was just surprised String didn't work and the compiler suggestions relied on knowledge of BytesSource to be useful. 🤷

@dbolduc dbolduc merged commit 27b400f into googleapis:main Oct 8, 2025
25 checks passed
@dbolduc dbolduc deleted the feat-storage-string-payload branch October 8, 2025 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: storage Issues related to the Cloud Storage API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants