pub struct FirebaseStorage {
pub base_url: String,
pub project_id: String,
/* private fields */
}Expand description
Client for interacting with Cloud Storage for Firebase.
Fields§
§base_url: String§project_id: StringImplementations§
Source§impl FirebaseStorage
impl FirebaseStorage
Sourcepub fn new(middleware: AuthMiddleware) -> Self
pub fn new(middleware: AuthMiddleware) -> Self
Creates a new FirebaseStorage instance.
This is typically called via FirebaseApp::storage().
Sourcepub fn bucket(&self, name: Option<&str>) -> Bucket
pub fn bucket(&self, name: Option<&str>) -> Bucket
Gets a Bucket instance that refers to the specific bucket.
§Arguments
name- The name of the bucket (e.g. “my-project.appspot.com”). If not provided, it attempts to use the default bucket name derived from the project ID (e.g., “{project_id}.appspot.com”).
Trait Implementations§
Source§impl Clone for FirebaseStorage
impl Clone for FirebaseStorage
Source§fn clone(&self) -> FirebaseStorage
fn clone(&self) -> FirebaseStorage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FirebaseStorage
impl !RefUnwindSafe for FirebaseStorage
impl Send for FirebaseStorage
impl Sync for FirebaseStorage
impl Unpin for FirebaseStorage
impl !UnwindSafe for FirebaseStorage
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