pub fn patch(self, serv: &mut Server) {
        let PartialServer {
            id: pid,
            nonce: pnonce,
            owner: powner,
            name: pname,
            description: pdescription,
            channels: pchannels,
            categories: pcategories,
            system_messages: psystem_messages,
            roles: proles,
            default_permissions: pdefault_permissions,
            icon: picon,
            banner: pbanner,
            nsfw: pnsfw,
            flags: pflags,
        } = self;
        let Server {
            id,
            nonce,
            owner,
            name,
            description,
            channels,
            categories,
            system_messages,
            roles,
            default_permissions,
            icon,
            banner,
            nsfw,
            flags,
        } = serv;

        if let Some(pid) = pid {
            *id = pid;
        }
        if let Some(pnonce) = pnonce {
            *nonce = Some(pnonce);
        }
        if let Some(powner) = powner {
            *owner = powner;
        }
        if let Some(pname) = pname {
            *name = pname;
        }
        if let Some(pdescription) = pdescription {
            *description = Some(pdescription);
        }
        if let Some(pchannels) = pchannels {
            *channels = pchannels;
        }
        if let Some(pcategories) = pcategories {
            *categories = pcategories;
        }
        if let Some(psystem_messages) = psystem_messages {
            *system_messages = Some(psystem_messages);
        }
        if let Some(proles) = proles {
            *roles = Some(proles);
        }
        if let Some(pdefault_permissions) = pdefault_permissions {
            *default_permissions = pdefault_permissions;
        }
        if let Some(picon) = picon {
            *icon = Some(picon);
        }
        if let Some(pbanner) = pbanner {
            *banner = Some(pbanner);
        }
        if let Some(pnsfw) = pnsfw {
            *nsfw = Some(pnsfw);
        }
        if let Some(pflags) = pflags {
            *flags = Some(pflags);
        }
    }
/// Treats self as a patch and applies it to server.
Treats self as a patch and applies it to server.
Treats self as a patch and applies it to server .
pub fn patch(self, serv: &mut Server) {
        let PartialServer {
            id: pid,
            nonce: pnonce,
            owner: powner,
            name: pname,
            description: pdescription,
            channels: pchannels,
            categories: pcategories,
            system_messages: psystem_messages,
            roles: proles,
            default_permissions: pdefault_permissions,
            icon: picon,
            banner: pbanner,
            nsfw: pnsfw,
            flags: pflags,
        } = self;
        let Server {
            id,
            nonce,
            owner,
            name,
            description,
            channels,
            categories,
            system_messages,
            roles,
            default_permissions,
            icon,
            banner,
            nsfw,
            flags,
        } = serv;
        if let Some(pid) = pid {
            *id = pid;
        }
        if let Some(pnonce) = pnonce {
            *nonce = Some(pnonce);
        }
        if let Some(powner) = powner {
            *owner = powner;
        }
        if let Some(pname) = pname {
            *name = pname;
        }
        if let Some(pdescription) = pdescription {
            *description = Some(pdescription);
        }
        if let Some(pchannels) = pchannels {
            *channels = pchannels;
        }
        if let Some(pcategories) = pcategories {
            *categories = pcategories;
        }
        if let Some(psystem_messages) = psystem_messages {
            *system_messages = Some(psystem_messages);
        }
        if let Some(proles) = proles {
            *roles = Some(proles);
        }
        if let Some(pdefault_permissions) = pdefault_permissions {
            *default_permissions = pdefault_permissions;
        }
        if let Some(picon) = picon {
            *icon = Some(picon);
        }
        if let Some(pbanner) = pbanner {
            *banner = Some(pbanner);
        }
        if let Some(pnsfw) = pnsfw {
            *nsfw = Some(pnsfw);
        }
        if let Some(pflags) = pflags {
            *flags = Some(pflags);
        }
    }
pub fn patch ( self , serv : & mut Server ) { let PartialServer { id : pid , nonce : pnonce , owner : powner , name : pname , description : pdescription , channels : pchannels , categories : pcategories , system_messages : psystem_messages , roles : proles , default_permissions : pdefault_permissions , icon : picon , banner : pbanner , nsfw : pnsfw , flags : pflags , } = self ; let Server { id , nonce , owner , name , description , channels , categories , system_messages , roles , default_permissions , icon , banner , nsfw , flags , } = serv ; if let Some ( pid ) = pid { * id = pid ; } if let Some ( pnonce ) = pnonce { * nonce = Some ( pnonce ) ; } if let Some ( powner ) = powner { * owner = powner ; } if let Some ( pname ) = pname { * name = pname ; } if let Some ( pdescription ) = pdescription { * description = Some ( pdescription ) ; } if let Some ( pchannels ) = pchannels { * channels = pchannels ; } if let Some ( pcategories ) = pcategories { * categories = pcategories ; } if let Some ( psystem_messages ) = psystem_messages { * system_messages = Some ( psystem_messages ) ; } if let Some ( proles ) = proles { * roles = Some ( proles ) ; } if let Some ( pdefault_permissions ) = pdefault_permissions { * default_permissions = pdefault_permissions ; } if let Some ( picon ) = picon { * icon = Some ( picon ) ; } if let Some ( pbanner ) = pbanner { * banner = Some ( pbanner ) ; } if let Some ( pnsfw ) = pnsfw { * nsfw = Some ( pnsfw ) ; } if let Some ( pflags ) = pflags { * flags = Some ( pflags ) ; } }
Treats self as a patch and applies it to server.
Treats self as a patch and applies it to server .
self
serv
&mut Server
self
serv
&mut Server